Skip to content

Commit 1c58857

Browse files
Merge pull request #498 from range-of-motion/add-spanish-translations-for-spa-prototype
Add Spanish translations for SPA prototype
2 parents 77d0ad6 + 67a8418 commit 1c58857

File tree

4 files changed

+63
-1
lines changed

4 files changed

+63
-1
lines changed

app/Http/Controllers/Api/SettingsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function index(Request $request): JsonResponse
2424
public function store(Request $request): JsonResponse
2525
{
2626
$request->validate([
27-
'language' => 'nullable|string|in:en,nl,dk,de,fr,pt,ru',
27+
'language' => 'nullable|string|in:en,nl,dk,de,fr,es,pt,ru',
2828
'theme' => 'nullable|string|in:light,dark',
2929
'weekly_report' => 'nullable|boolean',
3030
]);

resources/assets/js/prototype/screens/Settings/Preferences.vue

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ onMounted(() => retrieve());
5757
<option value="dk">Danish</option>
5858
<option value="de">German</option>
5959
<option value="fr">French</option>
60+
<option value="es">Spanish</option>
6061
<option value="pt">Portuguese</option>
6162
<option value="ru">Russian</option>
6263
</select>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"amount": "Importe",
3+
"create": "Crear",
4+
"dailyBalanceGraphDescription": "Este es tu saldo a lo largo del mes",
5+
"dashboard": "Dashboard",
6+
"date": "Fecha",
7+
"description": "Descripción",
8+
"earning": "Ingreso",
9+
"earningDescriptionPlaceholder": "Sueldo de febrero",
10+
"email": "Correo",
11+
"goodAfternoon": "Buenas tardes",
12+
"goodEvening": "Buenas noches",
13+
"goodMorning": "Buenos días",
14+
"language": "Idioma",
15+
"logIn": "Iniciar sesión",
16+
"password": "Contraseña",
17+
"recurringDescription": "Esta es una transacción recurrente—créala para el futuro",
18+
"spending": "Gasto",
19+
"spendingDescriptionPlaceholder": "Regalo de cumpleaños para Angela",
20+
"tag": "Etiqueta",
21+
"theme": "Tema",
22+
"transactions": "Transacciones",
23+
"weeklyReport": "Informe semanal",
24+
25+
"activities": {
26+
"tag": {
27+
"created": "creó la etiqueta #{id}",
28+
"deleted": "eliminó la etiqueta #{id}"
29+
},
30+
31+
"transaction": {
32+
"created": "creó la transacción #{id}",
33+
"deleted": "eliminó la transacción #{id}"
34+
}
35+
},
36+
37+
"intervals": {
38+
"daily": "Diario",
39+
"weekly": "Semanal",
40+
"biweekly": "Quincenal",
41+
"monthly": "Mensual",
42+
"yearly": "Anual"
43+
},
44+
45+
"months": {
46+
"january": "Enero",
47+
"february": "Febrero",
48+
"march": "Marzo",
49+
"april": "Abril",
50+
"may": "Mayo",
51+
"june": "Junio",
52+
"july": "Julio",
53+
"august": "Agosto",
54+
"september": "Septiembre",
55+
"october": "Octubre",
56+
"november": "Noviembre",
57+
"december": "Diciembre"
58+
}
59+
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import * as en from './en.json';
22
import * as nl from './nl.json';
33
import * as de from './de.json';
4+
import * as es from './es.json';
45
import * as ru from './ru.json';
56

67
export default {
78
en,
89
nl,
910
de,
11+
es,
1012
ru,
1113
};

0 commit comments

Comments
 (0)