chore: localize error string in lemma/morph widgets (#2085)
This commit is contained in:
parent
9865c6418e
commit
06e872ff1e
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
);
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue