PivityGmodStore

3. Language file layout

If you haven't read the previous topic, please read it >>> here <<<


Language file


Now create the file ehud/config/languages.lua with content:

local langs = {
["en"] = {
__name__ = "English",
__code__ = "US", --Language code: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

health = "Health", --translation key, used in vars
},
["ru"] = {
__name__ = "Русский",
__code__ = "RU", --Языковой код: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2

health = "Здоровье",
},
}

ehud.addon:RegisterLanguages(langs)
ehud.addon:SetDefaultLanguage("en") --that will be default language


So we created two languages: English and Russian

Can't find what you're looking for?

Contact support