Skip to content

Commit

Permalink
docs(i18n): add note about required test update if adding language
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Jan 4, 2025
1 parent 26e65d8 commit 6f86a47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/localization/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ export const I18N_FILES = [
// 3) When you add a language, please also add it to APP_LANGUAGES in LanguageUtil.kt
// BACKEND_LANGS in LanguageUtil is informational and not used for anything, so it's not imperative
// to keep it up to date.
// 4) If you add a language with a regional variant (anything with a hyphen) and a different variant
// 4) add it to LanguageUtilsTest > testCurrentLanguagesHaveNotChanged, taking care to
// follow the instructions there to alter the the previous vs current variable definitions
// 5) If you add a language with a regional variant (anything with a hyphen) and a different variant
// with the same root exists, you must add the root to 'localizedRegions'
// e.g., 'ga-IE' exists with no other 'ga-' entries yet, to add 'ga-EN', also add ga to localizedRegions
// 5) Update MissingDefaultResource in lint-release.xml
// 6) Update MissingDefaultResource in lint-release.xml
export const LANGUAGES = [
"af",
"am",
Expand Down

0 comments on commit 6f86a47

Please sign in to comment.