chore: enable more editor text to be translated (#4426)

This commit is contained in:
Juliano Penna 2024-04-07 22:33:45 -03:00 committed by GitHub
parent 47d321b8c2
commit 3171712380
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 80 additions and 45 deletions

View file

@ -39,17 +39,12 @@ class _DocumentPageState extends State<DocumentPage> {
@override
void initState() {
super.initState();
// The appflowy editor use Intl as localization, set the default language as fallback.
Intl.defaultLocale = 'en_US';
EditorNotification.addListener(_onEditorNotification);
}
@override
void dispose() {
EditorNotification.removeListener(_onEditorNotification);
super.dispose();
}