fix(i18n): 印尼语内容缺失时不再回退中文
This commit is contained in:
1 parent
9ef8eb15b0
commit
19196ceb8e
13 files changed
+261
-95
No files matched your search
@@ -29,9 +29,9 @@ void main() {
|
||||
for (final locale in const [Locale('en'), Locale('zh'), Locale('id')]) {
|
||||
final l10n = await AppLocalizations.delegate.load(locale);
|
||||
|
||||
expect(l10n.appName, 'FruitShorts', reason: '$locale appName');
|
||||
expect(l10n.brandMark, 'FRUITSHORTS', reason: '$locale brandMark');
|
||||
expect(l10n.shareFooter, 'FruitShorts', reason: '$locale shareFooter');
|
||||
expect(l10n.appName, 'ymb', reason: '$locale appName');
|
||||
expect(l10n.brandMark, 'YMB', reason: '$locale brandMark');
|
||||
expect(l10n.shareFooter, 'ymb', reason: '$locale shareFooter');
|
||||
expect(l10n.brandMark.toLowerCase(), isNot(contains('demo')));
|
||||
expect(l10n.shareFooter.toLowerCase(), isNot(contains('demo')));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user