Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌐 Added option for using language fallback #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ class SheetLocalization {
final String sheetId;
final int version;
final bool jsonSerializers;
final String? langFallback;
const SheetLocalization(
this.docId,
this.sheetId,
this.version, {
this.jsonSerializers = true,
this.langFallback,
});
}
5 changes: 3 additions & 2 deletions flutter_sheet_localization/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
intl: ^0.17.0
template_string: ^0.6.0
intl: ^0.19.0
template_string:
path: ../template_string
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ extension AppLocalizationsExtensions on BuildContext {
}
}

@SheetLocalization('1AcjI1BjmQpjlnPUZ7aVLbrnVR98xtATnSjU4CExM9fs', '0', 16)
class AppLocalizationsDelegate
extends LocalizationsDelegate<AppLocalizationsData> {
@SheetLocalization('1IgWiJd-V9p9CF8srgBCpecttFD5svfyDEH0gTtjJkUo', '0', 1)
class AppLocalizationsDelegate extends LocalizationsDelegate<AppLocalizationsData> {
const AppLocalizationsDelegate();

@override
Expand Down
Loading