diff --git a/locales/en.lua b/locales/en.lua index 0ed85ef..8f61359 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -2,7 +2,6 @@ local Translations = { error = { invalid_ext = "Thats not a valid extension, only", allowed_ext = "extension links are allowed.", - }, info = { use_printer = "Use Printer" diff --git a/locales/es.lua b/locales/es.lua new file mode 100644 index 0000000..754cc8e --- /dev/null +++ b/locales/es.lua @@ -0,0 +1,21 @@ +local Translations = { + error = { + invalid_ext = "Esa extensión no es válida, sólo", + allowed_ext = "son las extensiones de enlaces permitidas.", + }, + info = { + use_printer = "Usar impresora" + + }, + command = { + spawn_printer = "Generar una impresora" + } +} + +if GetConvar('qb_locale', 'en') == 'es' then + Lang = Locale:new({ + phrases = Translations, + warnOnMissing = true, + fallbackLang = Lang, + }) +end