You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/quiz/questions/designing-or-developing-for-multilingual-sites/en-US.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Languages like English and French are written from left-to-right, top-to-bottom.
36
36
37
37
## Do not concatenate translated strings
38
38
39
-
Do not do anything like `"The date today is " + date`. It will break in languages with different word order. Use a template string with parameters substitution for each language instead. For example, look at the following two sentences in English and Chinese respectively: `I will travel on {% date %}` and `{% date %} 我会出发`. Note that the position of the variable is different due to grammar rules of the language.
39
+
Do not do anything like `"The date today is " + date`. It will break in languages with different word order. Use a template string with parameters substitution for each language instead. For example, look at the following two sentences in English and Chinese respectively: `I will travel on {% date %}` and `我会在{% date %}出发`. Note that the position of the variable is different due to grammar rules of the language.
0 commit comments