-
Notifications
You must be signed in to change notification settings - Fork 2
wip: localization #29
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
Draft
nfebe
wants to merge
1
commit into
main
Choose a base branch
from
feat/localization-and-enhancements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -146,15 +146,14 @@ const CURRENCY_RATES: Record<string, number> = { | |
| }; | ||
|
|
||
| // Available time periods | ||
| // Note: These values are translation keys that will be resolved in components | ||
| const AVAILABLE_PERIODS: StatisticsPeriod[] = [ | ||
| { label: 'All time', value: 'all_time', days: 0 }, | ||
| { label: 'This week', value: 'current_week', days: 0 }, | ||
| { label: 'This month', value: 'current_month', days: 0 }, | ||
| { label: 'Last 3 months', value: '90d', days: 90 }, | ||
| { label: 'Custom', value: 'custom', days: 0 } | ||
|
Comment on lines
-152
to
-156
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| { label: 'dashboard.periods.thisWeek', value: 'current_week', days: 0 }, | ||
| { label: 'dashboard.periods.thisMonth', value: 'current_month', days: 0 }, | ||
| { label: 'dashboard.periods.thisYear', value: 'current_year', days: 0 } | ||
| ]; | ||
|
|
||
| const currentPeriod = ref<string>('all_time'); | ||
| const currentPeriod = ref<string>('current_month'); | ||
| const selectedWalletId = ref<number | null>(null); // null = all wallets | ||
| const isLoading = ref(false); | ||
| const error = ref<string | null>(null); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "common": { | ||
| "loading": "Wird geladen...", | ||
| "custom": "Benutzerdefiniert", | ||
| "income": "Einnahmen", | ||
| "expense": "Ausgaben", | ||
| "allWallets": "Alle Geldbörsen" | ||
| }, | ||
| "dashboard": { | ||
| "welcome": "Willkommen,", | ||
| "financialOverview": "Hier ist Ihre finanzielle Übersicht für {period}.", | ||
| "noTransactions": "Noch keine Transaktionen", | ||
| "noTransactionsSubtitle": "Erstellen Sie Ihre erste Transaktion auf der Transaktionsseite.", | ||
| "periods": { | ||
| "thisWeek": "Diese Woche", | ||
| "thisMonth": "Diesen Monat", | ||
| "thisYear": "Dieses Jahr", | ||
| "today": "Heute", | ||
| "yesterday": "Gestern", | ||
| "last7Days": "Letzte 7 Tage", | ||
| "last30Days": "Letzte 30 Tage", | ||
| "thisQuarter": "Dieses Quartal", | ||
| "lastQuarter": "Letztes Quartal" | ||
| }, | ||
| "kpis": { | ||
| "totalTransactions": "Gesamttransaktionen", | ||
| "totalIncome": "Gesamteinnahmen", | ||
| "totalExpenses": "Gesamtausgaben", | ||
| "netBalance": "Nettobilanz" | ||
| }, | ||
| "insights": { | ||
| "topIncomeSource": "Haupteinnahmequelle", | ||
| "biggestExpense": "Größte Ausgabe" | ||
| } | ||
| }, | ||
| "notifications": { | ||
| "transactionDeleted": "Transaktion gelöscht", | ||
| "transactionDeletedSuccess": "Die Transaktion wurde erfolgreich gelöscht", | ||
| "deleteFailed": "Löschen fehlgeschlagen", | ||
| "deleteFailedMessage": "Fehler beim Löschen der Transaktion. Bitte versuchen Sie es erneut.", | ||
| "confirmDelete": "Sind Sie sicher, dass Sie dieses {item} löschen möchten?" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "common": { | ||
| "loading": "Loading...", | ||
| "custom": "Custom", | ||
| "income": "Income", | ||
| "expense": "Expense", | ||
| "allWallets": "All Wallets" | ||
| }, | ||
| "dashboard": { | ||
| "welcome": "Welcome,", | ||
| "financialOverview": "Here's your financial overview for {period}.", | ||
| "noTransactions": "No transactions yet", | ||
| "noTransactionsSubtitle": "Create your first transaction from the Transactions page.", | ||
| "periods": { | ||
| "thisWeek": "This Week", | ||
| "thisMonth": "This Month", | ||
| "thisYear": "This Year", | ||
| "today": "Today", | ||
| "yesterday": "Yesterday", | ||
| "last7Days": "Last 7 Days", | ||
| "last30Days": "Last 30 Days", | ||
| "thisQuarter": "This Quarter", | ||
| "lastQuarter": "Last Quarter" | ||
| }, | ||
| "kpis": { | ||
| "totalTransactions": "Total Transactions", | ||
| "totalIncome": "Total Income", | ||
| "totalExpenses": "Total Expenses", | ||
| "netBalance": "Net Balance" | ||
| }, | ||
| "insights": { | ||
| "topIncomeSource": "Top Income Source", | ||
| "biggestExpense": "Biggest Expense" | ||
| } | ||
| }, | ||
| "notifications": { | ||
| "transactionDeleted": "Transaction deleted", | ||
| "transactionDeletedSuccess": "Transaction has been deleted successfully", | ||
| "deleteFailed": "Delete failed", | ||
| "deleteFailedMessage": "Failed to delete transaction. Please try again.", | ||
| "confirmDelete": "Are you sure you want to delete this {item}?" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "common": { | ||
| "loading": "Cargando...", | ||
| "custom": "Personalizado", | ||
| "income": "Ingreso", | ||
| "expense": "Gasto", | ||
| "allWallets": "Todas las carteras" | ||
| }, | ||
| "dashboard": { | ||
| "welcome": "Bienvenido,", | ||
| "financialOverview": "Aquí está su resumen financiero para {period}.", | ||
| "noTransactions": "Aún no hay transacciones", | ||
| "noTransactionsSubtitle": "Crea tu primera transacción desde la página de Transacciones.", | ||
| "periods": { | ||
| "thisWeek": "Esta semana", | ||
| "thisMonth": "Este mes", | ||
| "thisYear": "Este año", | ||
| "today": "Hoy", | ||
| "yesterday": "Ayer", | ||
| "last7Days": "Últimos 7 días", | ||
| "last30Days": "Últimos 30 días", | ||
| "thisQuarter": "Este trimestre", | ||
| "lastQuarter": "Último trimestre" | ||
| }, | ||
| "kpis": { | ||
| "totalTransactions": "Total de transacciones", | ||
| "totalIncome": "Ingresos totales", | ||
| "totalExpenses": "Gastos totales", | ||
| "netBalance": "Balance neto" | ||
| }, | ||
| "insights": { | ||
| "topIncomeSource": "Principal fuente de ingresos", | ||
| "biggestExpense": "Mayor gasto" | ||
| } | ||
| }, | ||
| "notifications": { | ||
| "transactionDeleted": "Transacción eliminada", | ||
| "transactionDeletedSuccess": "La transacción se ha eliminado correctamente", | ||
| "deleteFailed": "Error al eliminar", | ||
| "deleteFailedMessage": "No se pudo eliminar la transacción. Por favor, inténtelo de nuevo.", | ||
| "confirmDelete": "¿Está seguro de que desea eliminar este {item}?" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| { | ||
| "common": { | ||
| "loading": "Chargement...", | ||
| "custom": "Personnalisé", | ||
| "income": "Revenu", | ||
| "expense": "Dépense", | ||
| "allWallets": "Tous les portefeuilles" | ||
| }, | ||
| "dashboard": { | ||
| "welcome": "Bienvenue,", | ||
| "financialOverview": "Voici votre aperçu financier pour {period}.", | ||
| "noTransactions": "Aucune transaction pour le moment", | ||
| "noTransactionsSubtitle": "Créez votre première transaction depuis la page Transactions.", | ||
| "periods": { | ||
| "thisWeek": "Cette semaine", | ||
| "thisMonth": "Ce mois-ci", | ||
| "thisYear": "Cette année", | ||
| "today": "Aujourd'hui", | ||
| "yesterday": "Hier", | ||
| "last7Days": "7 derniers jours", | ||
| "last30Days": "30 derniers jours", | ||
| "thisQuarter": "Ce trimestre", | ||
| "lastQuarter": "Dernier trimestre" | ||
| }, | ||
| "kpis": { | ||
| "totalTransactions": "Total des transactions", | ||
| "totalIncome": "Revenu total", | ||
| "totalExpenses": "Dépenses totales", | ||
| "netBalance": "Solde net" | ||
| }, | ||
| "insights": { | ||
| "topIncomeSource": "Principale source de revenus", | ||
| "biggestExpense": "Plus grande dépense" | ||
| } | ||
| }, | ||
| "notifications": { | ||
| "transactionDeleted": "Transaction supprimée", | ||
| "transactionDeletedSuccess": "La transaction a été supprimée avec succès", | ||
| "deleteFailed": "Échec de la suppression", | ||
| "deleteFailedMessage": "Échec de la suppression de la transaction. Veuillez réessayer.", | ||
| "confirmDelete": "Êtes-vous sûr de vouloir supprimer ce {item} ?" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These comments are no longer relevant as the language array is now dynamically generated from
locales.valueandlanguageInfo. Removing them will keep the code clean and prevent confusion.