Skip to content

Commit

Permalink
Merge pull request #498 from range-of-motion/add-spanish-translations…
Browse files Browse the repository at this point in the history
…-for-spa-prototype

Add Spanish translations for SPA prototype
  • Loading branch information
range-of-motion authored Sep 15, 2024
2 parents 77d0ad6 + 67a8418 commit 1c58857
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 1 deletion.
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,
};

0 comments on commit 1c58857

Please sign in to comment.