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

set Locale for paginated Table #295

Open
Priyantha-Kingslake opened this issue Aug 15, 2024 · 2 comments
Open

set Locale for paginated Table #295

Priyantha-Kingslake opened this issue Aug 15, 2024 · 2 comments

Comments

@Priyantha-Kingslake
Copy link

I have a requirement where the app localization is set to 'es' but I need the general widgets (i.e. calendars, tables, etc) to have english. Would really appreciate if its allowed to set the locale for the widgets without tight coupling with project localization.

@Priyantha-Kingslake
Copy link
Author

Priyantha-Kingslake commented Aug 15, 2024

I found about Localization.override( ) and it resolved my issues.

return Localizations.override(
    context: context,
    locale: Locale('en'),
    child: PaginatedTable2( ),
);

@Priyantha-Kingslake
Copy link
Author

Sorry, I found later that this workaround messed up my dynamic localization allocation. Please allow setting Locale for PaginatedTable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant