From 701e32c36e9adf234e8351639ea6e33d67a82807 Mon Sep 17 00:00:00 2001 From: chahinebrini Date: Fri, 15 May 2026 23:31:35 +0200 Subject: [PATCH] =?UTF-8?q?fix(native/i18n):=20devices=20counter=20?= =?UTF-8?q?=E2=80=94=20use=20Vue-style=20%{var}=20placeholders?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new counter_some / counter_limit keys (added in e8ea005) used i18next default {{var}} braces, but lib/i18n.ts configures the interpolator with prefix: '%{', suffix: '}' (legacy Nuxt locale-file convention, kept verbatim when ported to RN). Result: the placeholders rendered literally on screen ("{{count}} von {{max}} Geräten…"). Switched all three locales (DE/EN/FR) to %{var}. Also dropped the literal "+ " prefix from the add_device label — the button now renders an Ionicons `add-circle-outline`, so the duplicate "+" was redundant. --- apps/rebreak-native/locales/de.json | 6 +++--- apps/rebreak-native/locales/en.json | 6 +++--- apps/rebreak-native/locales/fr.json | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/rebreak-native/locales/de.json b/apps/rebreak-native/locales/de.json index 729630c..392cafd 100644 --- a/apps/rebreak-native/locales/de.json +++ b/apps/rebreak-native/locales/de.json @@ -889,9 +889,9 @@ "success_body": "Du kannst weitere Geräte hinzufügen wenn du willst.", "remove_warning_title": "Profile manuell entfernen", "remove_warning_body": "Wir können das Profile nicht aus der Ferne löschen. Auf dem Mac: Systemeinstellungen → Profile → ReBreak → Entfernen (Admin-Passwort nötig).", - "add_device": "+ neues Gerät hinzufügen", - "counter_some": "{{count}} von {{max}} Geräten · noch {{remaining}} frei", - "counter_limit": "Maximum erreicht — {{max}} von {{max}} Geräten", + "add_device": "Neues Gerät hinzufügen", + "counter_some": "%{count} von %{max} Geräten · noch %{remaining} frei", + "counter_limit": "Maximum erreicht — %{max} von %{max} Geräten", "add_windows_enabled": "Windows-PC hinzufügen", "windows_label_question": "Wie soll der Windows-PC heißen?", "windows_label_default": "Windows-PC", diff --git a/apps/rebreak-native/locales/en.json b/apps/rebreak-native/locales/en.json index 3eb50cb..fdf8450 100644 --- a/apps/rebreak-native/locales/en.json +++ b/apps/rebreak-native/locales/en.json @@ -889,9 +889,9 @@ "success_body": "You can add more devices whenever you like.", "remove_warning_title": "Remove profile manually", "remove_warning_body": "We can't delete the profile remotely. On the Mac: System Settings → Profiles → ReBreak → Remove (admin password required).", - "add_device": "+ add new device", - "counter_some": "{{count}} of {{max}} devices · {{remaining}} more available", - "counter_limit": "Maximum reached — {{max}} of {{max}} devices", + "add_device": "Add new device", + "counter_some": "%{count} of %{max} devices · %{remaining} more available", + "counter_limit": "Maximum reached — %{max} of %{max} devices", "add_windows_enabled": "Add Windows PC", "windows_label_question": "What should this Windows PC be called?", "windows_label_default": "Windows PC", diff --git a/apps/rebreak-native/locales/fr.json b/apps/rebreak-native/locales/fr.json index d8afce2..f890bc5 100644 --- a/apps/rebreak-native/locales/fr.json +++ b/apps/rebreak-native/locales/fr.json @@ -886,9 +886,9 @@ "success_body": "Vous pouvez ajouter d'autres appareils quand vous le souhaitez.", "remove_warning_title": "Supprimer le profil manuellement", "remove_warning_body": "Nous ne pouvons pas supprimer le profil à distance. Sur le Mac : Réglages système → Profils → ReBreak → Supprimer (mot de passe administrateur requis).", - "add_device": "+ ajouter un appareil", - "counter_some": "{{count}} sur {{max}} appareils · encore {{remaining}} disponible", - "counter_limit": "Maximum atteint — {{max}} sur {{max}} appareils", + "add_device": "Ajouter un appareil", + "counter_some": "%{count} sur %{max} appareils · encore %{remaining} disponible", + "counter_limit": "Maximum atteint — %{max} sur %{max} appareils", "add_windows_enabled": "Ajouter un PC Windows", "windows_label_question": "Comment appeler ce PC Windows ?", "windows_label_default": "PC Windows",