chore: localize error string in lemma/morph widgets (#2085)

This commit is contained in:
ggurdin 2025-03-07 14:11:00 -05:00 committed by GitHub
parent 9865c6418e
commit 06e872ff1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -112,7 +112,7 @@ class MorphMeaningWidgetState extends State<MorphMeaningWidget> {
if (snapshot.hasError || snapshot.data == null) {
debugger(when: kDebugMode);
return Text(
snapshot.error.toString(),
L10n.of(context).oopsSomethingWentWrong,
textAlign: TextAlign.center,
style: widget.style,
);

View file

@ -176,7 +176,7 @@ class LemmaMeaningWidgetState extends State<LemmaMeaningWidget> {
if (snapshot.hasError || snapshot.data == null) {
debugger(when: kDebugMode);
return Text(
snapshot.error.toString(),
L10n.of(context).oopsSomethingWentWrong,
textAlign: TextAlign.center,
);
}