Add locale convar and locale fallback

This commit is contained in:
David Malchin
2022-09-04 00:46:21 +03:00
parent aadf09937e
commit 1a3aa824fa
34 changed files with 231 additions and 127 deletions
+7 -4
View File
@@ -19,7 +19,10 @@ local Translations = {
}
}
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true
})
if GetConvar('qb_locale', 'en') == 'pt' then
Lang = Locale:new({
phrases = Translations,
warnOnMissing = true,
fallbackLang = Lang,
})
end