RSG Documentation
  • Introduction
  • Guides
    • Script Optimization
    • Windows Intallation
  • Framework
    • Client Events
    • Client Functions
    • Server Events
    • Server Functions
    • Commands
    • Locale Functions
Powered by GitBook
On this page
  1. Framework

Locale Functions

Learn about and how to use common core 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
})
PreviousCommands

Last updated 1 year ago