mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-13 11:35:06 +01:00
Add documentation on languages
This commit is contained in:
parent
aca7827a15
commit
97bd63ca39
9
src/assets/README.md
Normal file
9
src/assets/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# About the languages
|
||||||
|
|
||||||
|
Locales are difficult, here is some guidance.
|
||||||
|
|
||||||
|
## Process on adding new languages
|
||||||
|
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.
|
||||||
|
3. If you language doesn't have a region specified. 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`.
|
@ -46,7 +46,7 @@ export const locales = {
|
|||||||
et,
|
et,
|
||||||
tok,
|
tok,
|
||||||
hi,
|
hi,
|
||||||
pt: ptbr,
|
"pt-BR": ptbr,
|
||||||
uk,
|
uk,
|
||||||
};
|
};
|
||||||
export type Locales = keyof typeof locales;
|
export type Locales = keyof typeof locales;
|
||||||
|
Loading…
Reference in New Issue
Block a user