Skip to content

Commit

Permalink
Merge pull request #26 from Cocodrulo/feature/es-locale
Browse files Browse the repository at this point in the history
Added Spanish translation
  • Loading branch information
GhzGarage authored Nov 13, 2024
2 parents c1b0d76 + d550d83 commit f7ad976
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 0 additions & 1 deletion locales/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
21 changes: 21 additions & 0 deletions locales/es.lua
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f7ad976

Please sign in to comment.