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

Add Spanish translations for SPA prototype #498

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function index(Request $request): JsonResponse
public function store(Request $request): JsonResponse
{
$request->validate([
'language' => 'nullable|string|in:en,nl,dk,de,fr,pt,ru',
'language' => 'nullable|string|in:en,nl,dk,de,fr,es,pt,ru',
'theme' => 'nullable|string|in:light,dark',
'weekly_report' => 'nullable|boolean',
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ onMounted(() => retrieve());
<option value="dk">Danish</option>
<option value="de">German</option>
<option value="fr">French</option>
<option value="es">Spanish</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
</select>
Expand Down
59 changes: 59 additions & 0 deletions resources/assets/js/prototype/translations/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"amount": "Importe",
"create": "Crear",
"dailyBalanceGraphDescription": "Este es tu saldo a lo largo del mes",
"dashboard": "Dashboard",
"date": "Fecha",
"description": "Descripción",
"earning": "Ingreso",
"earningDescriptionPlaceholder": "Sueldo de febrero",
"email": "Correo",
"goodAfternoon": "Buenas tardes",
"goodEvening": "Buenas noches",
"goodMorning": "Buenos días",
"language": "Idioma",
"logIn": "Iniciar sesión",
"password": "Contraseña",
"recurringDescription": "Esta es una transacción recurrente—créala para el futuro",
"spending": "Gasto",
"spendingDescriptionPlaceholder": "Regalo de cumpleaños para Angela",
"tag": "Etiqueta",
"theme": "Tema",
"transactions": "Transacciones",
"weeklyReport": "Informe semanal",

"activities": {
"tag": {
"created": "creó la etiqueta #{id}",
"deleted": "eliminó la etiqueta #{id}"
},

"transaction": {
"created": "creó la transacción #{id}",
"deleted": "eliminó la transacción #{id}"
}
},

"intervals": {
"daily": "Diario",
"weekly": "Semanal",
"biweekly": "Quincenal",
"monthly": "Mensual",
"yearly": "Anual"
},

"months": {
"january": "Enero",
"february": "Febrero",
"march": "Marzo",
"april": "Abril",
"may": "Mayo",
"june": "Junio",
"july": "Julio",
"august": "Agosto",
"september": "Septiembre",
"october": "Octubre",
"november": "Noviembre",
"december": "Diciembre"
}
}
2 changes: 2 additions & 0 deletions resources/assets/js/prototype/translations/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import * as en from './en.json';
import * as nl from './nl.json';
import * as de from './de.json';
import * as es from './es.json';
import * as ru from './ru.json';

export default {
en,
nl,
de,
es,
ru,
};
Loading