🌐 Add i18n-ally config and upgrade next-international

This commit is contained in:
Baptiste Arnaud
2023-09-05 16:44:44 +02:00
parent 9e8fa124b5
commit e4ece315ed
11 changed files with 44 additions and 33 deletions

View File

@@ -1,4 +1,6 @@
export default {
import { defineLocale } from '.'
export default defineLocale({
back: 'Zurück',
'confirmModal.defaultTitle': 'Bist du sicher?',
'dashboard.header.settingsButton.label': 'Einstellungen & Mitglieder',
@@ -70,6 +72,7 @@ export default {
'account.myAccount.nameInput.label': 'Name:',
'analytics.viewsLabel': 'Ansichten',
'analytics.startsLabel': 'Starts',
'analytics.notAvailableLabel': 'Nicht verfügbar',
'analytics.completionRateLabel': 'Abschlussrate',
'auth.signin.heading': 'Anmelden',
'auth.signin.noAccountLabel.preLink': 'Noch kein Konto?',
@@ -119,7 +122,6 @@ export default {
'Um {type} hinzuzufügen, musst du deinen Tarif aktualisieren',
'billing.currentSubscription.heading': 'Abonnement',
'billing.currentSubscription.subheading': 'Aktuelles Workspace-Abonnement:',
'billing.currentSubscription.cancelLink': 'Mein Abonnement kündigen',
'billing.invoices.heading': 'Rechnungen',
'billing.invoices.empty': 'Keine Rechnungen für diesen Workspace gefunden.',
'billing.invoices.paidAt': 'Bezahlt am',
@@ -188,4 +190,4 @@ export default {
'workspace.settings.modal.menu.version.label': 'Version: {version}',
'workspace.dropdown.newButton.label': 'Neuer Workspace',
'workspace.dropdown.logoutButton.label': 'Abmelden',
} as const
})

View File

@@ -69,6 +69,7 @@ export default {
'account.myAccount.nameInput.label': 'Name:',
'analytics.viewsLabel': 'Views',
'analytics.startsLabel': 'Starts',
'analytics.notAvailableLabel': 'Not available',
'analytics.completionRateLabel': 'Completion rate',
'auth.signin.heading': 'Sign In',
'auth.signin.noAccountLabel.preLink': "Don't have an account?",
@@ -114,7 +115,6 @@ export default {
'You need to upgrade your plan in order to {type}',
'billing.currentSubscription.heading': 'Subscription',
'billing.currentSubscription.subheading': 'Current workspace subscription:',
'billing.currentSubscription.cancelLink': 'Cancel my subscription',
'billing.invoices.heading': 'Invoices',
'billing.invoices.empty': 'No invoices found for this workspace.',
'billing.invoices.paidAt': 'Paid at',

View File

@@ -1,4 +1,6 @@
export default {
import { defineLocale } from '.'
export default defineLocale({
back: 'Retour',
'confirmModal.defaultTitle': 'Es-tu sûr ?',
'dashboard.header.settingsButton.label': 'Paramètres & Membres',
@@ -69,6 +71,7 @@ export default {
'account.myAccount.nameInput.label': 'Nom:',
'analytics.viewsLabel': 'Vues',
'analytics.startsLabel': 'Démarrés',
'analytics.notAvailableLabel': 'Non disponible',
'analytics.completionRateLabel': 'Taux de complétion',
'auth.signin.heading': 'Se connecter',
'auth.signin.noAccountLabel.preLink': "Tu n'as pas de compte?",
@@ -116,7 +119,6 @@ export default {
'Tu dois mettre à niveau ton abonnement pour {type}',
'billing.currentSubscription.heading': 'Abonnement',
'billing.currentSubscription.subheading': 'Abonnement actuel du workspace :',
'billing.currentSubscription.cancelLink': "Annuler l'abonnement",
'billing.invoices.heading': 'Factures',
'billing.invoices.empty': 'Aucune facture trouvée pour ce workspace.',
'billing.invoices.paidAt': 'Payé le',
@@ -188,4 +190,4 @@ export default {
'workspace.settings.modal.menu.version.label': 'Version : {version}',
'workspace.dropdown.newButton.label': 'Nouveau workspace',
'workspace.dropdown.logoutButton.label': 'Déconnexion',
} as const
})

View File

@@ -7,6 +7,7 @@ export const {
getLocaleProps,
useCurrentLocale,
useChangeLocale,
defineLocale,
} = createI18n({
en: () => import('./en'),
fr: () => import('./fr'),

View File

@@ -1,4 +1,6 @@
export default {
import { defineLocale } from '.'
export default defineLocale({
back: 'Voltar',
'confirmModal.defaultTitle': 'Tem certeza?',
'dashboard.header.settingsButton.label': 'Configurações & Membros',
@@ -70,6 +72,7 @@ export default {
'account.myAccount.nameInput.label': 'Nome:',
'analytics.viewsLabel': 'Visualizações',
'analytics.startsLabel': 'Inícios',
'analytics.notAvailableLabel': 'Não disponível',
'analytics.completionRateLabel': 'Taxa de conclusão',
'auth.signin.heading': 'Entrar',
'auth.signin.noAccountLabel.preLink': 'Não tem uma conta?',
@@ -118,7 +121,6 @@ export default {
'billing.currentSubscription.heading': 'Assinatura',
'billing.currentSubscription.subheading':
'Assinatura atual do espaço de trabalho:',
'billing.currentSubscription.cancelLink': 'Cancelar minha assinatura',
'billing.invoices.heading': 'Faturas',
'billing.invoices.empty':
'Nenhuma fatura encontrada para este espaço de trabalho.',
@@ -190,4 +192,4 @@ export default {
'workspace.settings.modal.menu.version.label': 'Versão: {version}',
'workspace.dropdown.newButton.label': 'Novo espaço de trabalho',
'workspace.dropdown.logoutButton.label': 'Sair',
} as const
})