From b4d92b82314f1bca9ac90708c06c4601a26ba90f Mon Sep 17 00:00:00 2001 From: Kenneth Iversen Date: Wed, 14 Sep 2022 10:24:56 +0200 Subject: [PATCH] Enabled auto-switching --- locale/no.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/locale/no.lua b/locale/no.lua index 23eb2bb..cc7694e 100644 --- a/locale/no.lua +++ b/locale/no.lua @@ -118,7 +118,10 @@ local Translations = { }, } -Lang = Locale:new({ - phrases = Translations, - warnOnMissing = true -}) +if GetConvar('qb_locale', 'en') == 'no' then + Lang = Locale:new({ + phrases = Translations, + warnOnMissing = true, + fallbackLang = Lang, + }) +end \ No newline at end of file