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: docs/02-Adding-Translations.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,10 @@ A special folder called the `root` folder houses the reference English translati
30
30
Each `src/nls/<locale>` folder contains similar files, plus a few additional ones:
31
31
1.`expertTranslations.json` where you can provide expert translations for specific English strings to locale strings. This expert translation will be used instead of machine translations if present for a string.
32
32
2.`strings.js` - The full list of translated text for the locale.
33
-
3. Apart from the above two there are 2 autogenerated files that should not be edited: `lastTranslated.json` and `lastTranslatedLocale.json`.
33
+
3. Apart from the above two there are 2 autogenerated files that should not be edited: `lastTranslated.json`.
34
34
35
35
## Autogenerated and Manual translations
36
-
When any string changes are made to `src/nls/root/strings.js`or any `src/nls/<locale>/strings.js`, it will automatically be scanned by GitHub Actions and the corresponding translations will be generated. A pull request will be raised with the new translations.
36
+
When any string changes are made to `src/nls/root/strings.js` , it will automatically be scanned by GitHub Actions and the corresponding translations will be generated. A pull request will be raised with the new translations.
37
37
38
38
You can also run the translation command locally if you have the AWS/GCP keys with the command. This is mostly FYI for phoenix internal devs.
39
39
```bash
@@ -57,7 +57,6 @@ Say we want to add a new language translation `ko`. We have to do the following
57
57
2. In file `nls/root/strings-app.js` add the line `"LOCALE_KO": "한국어",` where `한국어` is `Korean` in Korean language.
58
58
3. Create a new folder `nls/ko`.
59
59
4. Create a new file `nls/ko/strings.js` with the content `define({});`
60
-
5. Create three new files `nls/ko/lastTranslated.json`, `nls/ko/lastTranslatedLocale.json` and
61
60
`nls/ko/expertTranslations.json` with the content `{}`
62
61
63
62
Once the code is checked in, the translation will be auto generated.
0 commit comments