style(brand): 统一三语与双平台 YMB 展示名
This commit is contained in:
1 parent
52e1883862
commit
bcf2dfe02a
13 files changed
+33
-30
No files matched your search
@@ -22,7 +22,7 @@ void main() {
|
||||
test('should_use_ymb_when_resolving_each_app_locale', () async {
|
||||
for (final locale in AppLocalizations.supportedLocales) {
|
||||
final l10n = await AppLocalizations.delegate.load(locale);
|
||||
expect(l10n.appName, 'ymb');
|
||||
expect(l10n.appName, 'YMB');
|
||||
}
|
||||
});
|
||||
|
||||
@@ -118,11 +118,11 @@ void main() {
|
||||
final manifest = File(
|
||||
'android/app/src/main/AndroidManifest.xml',
|
||||
).readAsStringSync();
|
||||
expect(manifest, contains('android:label="ymb"'));
|
||||
expect(manifest, contains('android:label="YMB"'));
|
||||
final plist = File('ios/Runner/Info.plist').readAsStringSync();
|
||||
expect(
|
||||
RegExp(
|
||||
r'<key>CFBundleDisplayName</key>\s*<string>ymb</string>',
|
||||
r'<key>CFBundleDisplayName</key>\s*<string>YMB</string>',
|
||||
).hasMatch(plist),
|
||||
isTrue,
|
||||
);
|
||||
|
||||
@@ -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, 'ymb', reason: '$locale appName');
|
||||
expect(l10n.appName, 'YMB', reason: '$locale appName');
|
||||
expect(l10n.brandMark, 'YMB', reason: '$locale brandMark');
|
||||
expect(l10n.shareFooter, 'ymb', reason: '$locale shareFooter');
|
||||
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