~/docs/tattoo-shop-v2/configuration/translate
tattoo shop v2 docs›
Tattoo shop V2
Translate
-- 3 code blocks · 1 min read
Switch language
Config.Lang = 'en' -- 'en', 'fr' or 'es'
English, French and Spanish ship complete in shared/locale.lua.
Add your own language
Copy the en block in shared/locale.lua, rename it, and translate the values:
Locale = {
en = { ... },
fr = { ... },
es = { ... },
de = {
no_access = "Zugriff eingeschrankt",
no_money = "Nicht genug Geld",
applied = "Tattoo aufgetragen !",
shop_name = "Tattoo-Studio",
-- ...
},
}
Then set Config.Lang = 'de'.
Any key you leave out falls back to English, so a partial translation never breaks the UI.
Keep the text accent-free. The same keys feed GTA natives (
DrawText, help notifications, blip names) which render accented UTF-8 badly. That is why the shipped French and Spanish locales are written without accents.
Format placeholders
A few strings take a value, keep the %d where it belongs:
too_many_zones = "Too many inked body parts (max %d)",
too_many_images = "Too many images (max %d)",