Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(locales): add Spanish translations #146

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading