diff --git a/app/Http/Controllers/Api/SettingsController.php b/app/Http/Controllers/Api/SettingsController.php index 9faa5593..72c801f7 100644 --- a/app/Http/Controllers/Api/SettingsController.php +++ b/app/Http/Controllers/Api/SettingsController.php @@ -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', ]); diff --git a/resources/assets/js/prototype/screens/Settings/Preferences.vue b/resources/assets/js/prototype/screens/Settings/Preferences.vue index 3707da5e..5a9d95c8 100644 --- a/resources/assets/js/prototype/screens/Settings/Preferences.vue +++ b/resources/assets/js/prototype/screens/Settings/Preferences.vue @@ -57,6 +57,7 @@ onMounted(() => retrieve()); + diff --git a/resources/assets/js/prototype/translations/es.json b/resources/assets/js/prototype/translations/es.json new file mode 100644 index 00000000..9c0c73f9 --- /dev/null +++ b/resources/assets/js/prototype/translations/es.json @@ -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" + } +} diff --git a/resources/assets/js/prototype/translations/index.js b/resources/assets/js/prototype/translations/index.js index 5b93a258..d23ca33a 100644 --- a/resources/assets/js/prototype/translations/index.js +++ b/resources/assets/js/prototype/translations/index.js @@ -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, };