Skip to content

Commit

Permalink
Merge pull request #146 from Cocodrulo/feature/es-lua
Browse files Browse the repository at this point in the history
feat(locales): add Spanish translations
  • Loading branch information
GhzGarage authored Nov 19, 2024
2 parents 3bc00be + 79a18e6 commit fd6879f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions locales/es.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
local Translations = {
success = {
withdraw = 'Retiro exitoso',
deposit = 'Depósito exitoso',
transfer = 'Transferencia exitosa',
account = 'Cuenta creada',
rename = 'Cuenta renombrada',
delete = 'Cuenta eliminada',
userAdd = 'Usuario añadido',
userRemove = 'Usuario eliminado',
card = 'Tarjeta creada',
give = 'Se dieron $%s en efectivo',
receive = 'Se recibieron $%s en efectivo',
},
error = {
error = 'Ocurrió un error',
access = 'No autorizado',
account = 'Cuenta no encontrada',
accounts = 'Número máximo de cuentas creadas',
user = 'Usuario ya añadido',
noUser = 'Usuario no encontrado',
money = 'No hay suficiente dinero',
pin = 'PIN inválido',
card = 'No se encontró tarjeta bancaria',
amount = 'Monto inválido',
toofar = 'Estás demasiado lejos',
},
progress = {
atm = 'Accediendo al cajero automático',
}
}

if GetConvar('qb_locale', 'en') == 'es' then
Lang = Lang or Locale:new({
phrases = Translations,
warnOnMissing = true
})
end

0 comments on commit fd6879f

Please sign in to comment.