mirror of
https://github.com/movie-web/movie-web.git
synced 2025-02-05 01:36:23 +01:00
Update src/assets/README.md
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
This commit is contained in:
parent
a4f75a34ab
commit
c3cf9ecf1a
@ -4,6 +4,6 @@ Locales are difficult, here is some guidance.
|
|||||||
|
|
||||||
## Process on adding new languages
|
## Process on adding new languages
|
||||||
1. Use weblate to add translations, see contributing guidelines.
|
1. Use weblate to add translations, see contributing guidelines.
|
||||||
2. Add your language to `@/assets/languages.ts`. Must be iso format. For joke languages, use any format.
|
2. Add your language to `@/assets/languages.ts`. Must be in ISO format (ISO-639 for language and ISO-3166 for country/region). For joke languages, use any format.
|
||||||
3. If you language doesn't have a region specified. Add a default region in `@/utils/language.ts` at `defaultLanguageCodes`
|
3. If your language doesn't have a region specified (Such as in `pt-BR`, `BR` being the region). Add a default region in `@/utils/language.ts` at `defaultLanguageCodes`
|
||||||
4. If the flag in the language dropdown doesn't match the correct one. Add a default country in `@/utils/language.ts` at `countryPriority`.
|
4. If the flag in the language dropdown doesn't match the correct one. Add a default country in `@/utils/language.ts` at `countryPriority`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user