readme update

This commit is contained in:
Athou
2022-10-28 10:24:33 +02:00
parent d187c23a77
commit 42c740eaff
2 changed files with 2 additions and 4 deletions

View File

@@ -77,10 +77,11 @@ Files for internationalization are located [here](https://github.com/Athou/comma
To add a new language:
- edit `commafeed-client/src/i18n.ts` and
- edit `commafeed-client/src/i18n.ts`
- add the new locale to the `locales` array.
- import the dayjs locale
- edit `commafeed-client/.linguirc` and add the new locale to the `locales` array.
- run `npm run i18n` and add translations to the newly created `commafeed-client/src/locales/[locale]/messages.po` file
The name of the locale should be the two-letters [ISO-639-1 language code](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).