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: TRANSLATION.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,15 @@ At runtime, the proper translation will be picked based on the browser language.
21
21
22
22
You need to add the new language in 4 places:
23
23
24
-
1. Create `lib/challenges/locales/<lang>` and copy the whole `worlds` directory and `index.json`
24
+
1. Create `lib/challenges/locales/<locale>` and copy the whole `worlds` directory and `index.json`
25
25
These are the translations of the challenges, the main content of Make-Art.
26
26
27
-
2. Create `locales/<lang>` and copy the content of `locales/en`
27
+
2. Create `locales/<locale>` and copy the content of `locales/en`
28
28
These are the translations of the views
29
29
30
30
3. Directly edit `content/docs.json` and add your language to the map (at the top level)
31
31
32
-
4. Add your language to `SUPPORTED_LANGUAGES` array in `lib/i18n.js`
33
-
34
-
Note that languages are identified by their 2 letter abbreviation (ignoring the country), so for example fr-FR and fr-CA will share the same translation `fr`.
32
+
4. Add your language to `SUPPORTED_LOCALES` array in `lib/i18n.js`
0 commit comments