Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 549 Bytes

locale-function-reference.md

File metadata and controls

30 lines (23 loc) · 549 Bytes
description
Learn about and how to use common core locale functions!

Locale Functions

Use this template to the bottom of the file

if GetConvar('rsg_locale', 'en') == 'NAME' then
    Lang = Locale:new({
        phrases = Translations,
        warnOnMissing = true,
        fallbackLang = Lang,
    })
end

NAME = name of the Lang file, ie fr (French),de (Germany) ect

--

Use this template to the bottom of the file if just en (English)

Lang = Locale:new({
    phrases = Translations,
    warnOnMissing = true
})