diff --git a/lib/ui/nav_bar.dart b/lib/ui/nav_bar.dart index 3505e3d..e9a0c78 100644 --- a/lib/ui/nav_bar.dart +++ b/lib/ui/nav_bar.dart @@ -4,6 +4,7 @@ import 'package:test/Classes/account.dart'; import 'package:test/ui/home_page.dart' show HomePage; import 'package:test/ui/settings_page.dart' show SettingsPage; +import '../Classes/localization/translation.dart'; import 'generator_page.dart'; import 'health_page.dart'; @@ -53,22 +54,22 @@ class _NavBarState extends State { EdgeInsets.symmetric(horizontal: w * 0.04, vertical: h * 0.015), gap: w * 0.012, iconSize: w * 0.06, - tabs: const [ + tabs: [ GButton( icon: Icons.home, - text: 'Home', + text: LanguageTranslation.of(context)!.text('home_title'), ), GButton( icon: Icons.password, - text: 'Generator', + text: LanguageTranslation.of(context)!.text('generator_title'), ), GButton( icon: Icons.health_and_safety, - text: 'Health', + text: LanguageTranslation.of(context)!.text('heal_title'), ), GButton( icon: Icons.settings, - text: 'Settings', + text: LanguageTranslation.of(context)!.text('setting_title'), ), ], selectedIndex: _selectedIndex, diff --git a/locales/i18n_en.json b/locales/i18n_en.json index 7d7ef15..ea0eb77 100644 --- a/locales/i18n_en.json +++ b/locales/i18n_en.json @@ -1,4 +1,7 @@ { "home_title" : "Home", - "search" : "search" + "search" : "search", + "generator_title" : "Generator", + "heal_title" : "Heal", + "setting_title" : "Settings" } \ No newline at end of file diff --git a/locales/i18n_fr.json b/locales/i18n_fr.json index 84d0ed6..b884ae7 100644 --- a/locales/i18n_fr.json +++ b/locales/i18n_fr.json @@ -1,4 +1,7 @@ { "home_title" : "Accueil", - "search" : "rechercher" + "search" : "rechercher", + "generator_title" : "Générateur", + "heal_title" : "Santé", + "setting_title" : "Paramètres" } \ No newline at end of file diff --git a/locales/i18n_pt.json b/locales/i18n_pt.json index 01f8600..1e9c207 100644 --- a/locales/i18n_pt.json +++ b/locales/i18n_pt.json @@ -1,4 +1,7 @@ { "home_title" : "Inicio", - "search" : "busca" + "search" : "busca", + "generator_title" : "Gerador", + "heal_title" : "Saúde", + "setting_title" : "Configurações" } \ No newline at end of file