diff --git a/content/Contributing and Debugging/Translations.md b/content/Contributing and Debugging/Translations.md index 13a4671f..2b0df8a0 100644 --- a/content/Contributing and Debugging/Translations.md +++ b/content/Contributing and Debugging/Translations.md @@ -46,4 +46,16 @@ registerEntry("pl_PL", TXT_KEY_HELLO, [](const Hyprutils::I18n::translationVarMa ``` As you can see, you can change the returned string based on some variable. Please note all variables -are strings, so you need to call a standard function like `std::stoi` to obtain an integer. \ No newline at end of file +are strings, so you need to call a standard function like `std::stoi` to obtain an integer. + +### Fallbacks + +In general, if you are translating into a language with regional variants, if the translations are the same, +you don't need two entries. + +Order of fallbacks is as follows: + +`xy_ZT` -> `xy_XY` -> `xy_ANYTHING` -> `global fallback`, usually `en_US`. + +So, if you write something for `de_DE`, and the user has `de_AT`, if `de_AT` is missing, +`de_DE` will be used. \ No newline at end of file