-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
111 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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
28 changes: 22 additions & 6 deletions
28
catalyst_voices/packages/catalyst_voices_localization/lib/l10n/intl_en.arb
This file contains 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 |
---|---|---|
@@ -1,7 +1,23 @@ | ||
{ | ||
"@@locale": "en", | ||
"counterAppBarTitle": "Counter", | ||
"@counterAppBarTitle": { | ||
"description": "Text shown in the AppBar of the Counter Page" | ||
} | ||
} | ||
"@@locale": "en", | ||
"loginScreenUsernameLabelText": "Username", | ||
"@loginScreenUsernameLabelText": { | ||
"description": "Text shown in the login screen for the username field" | ||
}, | ||
"loginScreenPasswordLabelText": "Password", | ||
"@loginScreenPasswordLabelText": { | ||
"description": "Text shown in the login screen for the password field" | ||
}, | ||
"loginScreenErrorMessage": "Wrong credentials", | ||
"@loginScreenErrorMessage": { | ||
"description": "Text shown in the login screen when the user enters wrong credentials" | ||
}, | ||
"loginScreenLoginButtonText": "Login", | ||
"@loginScreenLoginButtonText": { | ||
"description": "Text shown in the login screen for the login button" | ||
}, | ||
"homeScreenText": "Catalyst Voices", | ||
"@homeScreenText": { | ||
"description": "Text shown in the home screen" | ||
} | ||
} |
13 changes: 7 additions & 6 deletions
13
catalyst_voices/packages/catalyst_voices_localization/lib/l10n/intl_es.arb
This file contains 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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"@@locale": "es", | ||
"counterAppBarTitle": "Contador", | ||
"@counterAppBarTitle": { | ||
"description": "Texto mostrado en la AppBar de la página del contador" | ||
} | ||
} | ||
"@@locale": "es", | ||
"loginScreenUsernameLabelText": "Nombre de usuario", | ||
"loginScreenPasswordLabelText": "Contraseña", | ||
"loginScreenErrorMessage": "Credenciales incorrectas", | ||
"loginScreenLoginButtonText": "Acceso", | ||
"homeScreenLoginButtonText": "Catalyst Voices - Inicio 🇪🇸" | ||
} |
6 changes: 6 additions & 0 deletions
6
...s/packages/catalyst_voices_localization/lib/src/build_context_localization_extension.dart
This file contains 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,6 @@ | ||
import 'package:catalyst_voices_localization/generated/catalyst_voices_localizations.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
|
||
extension BuildContextLocalizationExtension on BuildContext { | ||
VoicesLocalizations get l => VoicesLocalizations.of(this)!; | ||
} |
1 change: 1 addition & 0 deletions
1
...st_voices/packages/catalyst_voices_localization/lib/src/catalyst_voices_localization.dart
This file contains 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export 'package:catalyst_voices_localization/generated/catalyst_voices_localizations.dart'; | ||
export 'package:catalyst_voices_localization/src/build_context_localization_extension.dart'; |