neuer printer
This commit is contained in:
parent
a1e9027648
commit
c917371845
33 changed files with 476 additions and 665 deletions
|
|
@ -1,18 +0,0 @@
|
|||
Locales = {}
|
||||
LocalLang = {}
|
||||
|
||||
function LoadLocale(lang)
|
||||
local file = LoadResourceFile(GetCurrentResourceName(), 'locales/' .. lang .. '.json')
|
||||
if file then
|
||||
LocalLang = json.decode(file)
|
||||
else
|
||||
print('[Locale] Translation file not found for language: ' .. lang)
|
||||
end
|
||||
end
|
||||
|
||||
function Locale(key)
|
||||
return LocalLang[key] or key
|
||||
end
|
||||
|
||||
-- Load language
|
||||
LoadLocale(Config.Locale)
|
||||
Loading…
Add table
Add a link
Reference in a new issue