-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
f0ea905
commit 067606a
Showing
19 changed files
with
201 additions
and
155 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
arb-dir: lib/src/l10n | ||
template-arb-file: app_en.arb | ||
output-localization-file: app_localizations.dart | ||
nullable-getter: false | ||
untranslated-messages-file: needs_translation.json |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"@@locale": "de", | ||
"save": "Speichern", | ||
"openWeatherApiKey": "OpenWeather API Schlüssel", | ||
"offline": "Keine Netzwerkverbindung", | ||
"cityName": "Ortsnamen", | ||
"cityNotFound": "Ort nicht gefunden", | ||
"enterACityName": "Bitte gib einen Ort ein", | ||
"enterValidApiKey": "Bitte gib einen (gültigen) API Schlüssel ein", | ||
"hourly": "Stündlich", | ||
"daily": "Täglich", | ||
"now": "Jetzt" | ||
} |
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,13 @@ | ||
{ | ||
"@@locale": "en", | ||
"save": "Save", | ||
"openWeatherApiKey": "OpenWeather API key", | ||
"offline": "Offline", | ||
"cityName": "City name", | ||
"cityNotFound": "City not found", | ||
"enterACityName": "Please enter a city name", | ||
"enterValidApiKey": "Please enter a (valid) API key", | ||
"hourly": "Hourly", | ||
"daily": "Daily", | ||
"now": "Now" | ||
} |
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,13 @@ | ||
import 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
|
||
export 'package:flutter_gen/gen_l10n/app_localizations.dart'; | ||
|
||
final List<Locale> supportedLocales = { | ||
const Locale('en'), // make sure 'en' comes first (#216) | ||
...List.of(AppLocalizations.supportedLocales)..remove(const Locale('en')), | ||
}.toList(); | ||
|
||
extension LocalizationsContext on BuildContext { | ||
AppLocalizations get l10n => AppLocalizations.of(this); | ||
} |
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
Oops, something went wrong.