diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index cc1e67c..9734e00 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -6,7 +6,7 @@ diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 4c7589a..dea50b7 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -7,7 +7,7 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName - ymb + YMB CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 2bbce74..eda3b61 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -1,6 +1,6 @@ { "@@locale": "en", - "appName": "ymb", + "appName": "YMB", "demo": "DEMO", "homeHeadline": "Watch now", "homeSubtitle": "Free short drama preview.", @@ -19,7 +19,7 @@ "searchCancel": "Cancel", "featured": "Featured", "recommended": "Recommended", - "fruitShortsBrand": "ymb", + "fruitShortsBrand": "YMB", "comingSoon": "Coming soon", "authLegal": "By continuing, you agree to the Terms of Service and Privacy Policy.", "authLegalLead": "By continuing, you agree to the", @@ -416,7 +416,7 @@ "continueWatchingHeading": "CONTINUE WATCHING", "preferencesHeading": "PREFERENCES", "brandMark": "YMB", - "shareFooter": "ymb", + "shareFooter": "YMB", "shortsTab": "Shorts", "myListTab": "My List", "watchFull": "Watch Full", diff --git a/lib/l10n/app_id.arb b/lib/l10n/app_id.arb index dcac711..90f89df 100644 --- a/lib/l10n/app_id.arb +++ b/lib/l10n/app_id.arb @@ -1,6 +1,6 @@ { "@@locale": "id", - "appName": "ymb", + "appName": "YMB", "demo": "Demo", "homeHeadline": "Tonton sekarang", "homeSubtitle": "Pratinjau drama pendek gratis.", @@ -19,7 +19,7 @@ "searchCancel": "Batal", "featured": "Unggulan", "recommended": "Rekomendasi", - "fruitShortsBrand": "ymb", + "fruitShortsBrand": "YMB", "comingSoon": "Segera hadir", "authLegal": "Dengan melanjutkan, Anda menyetujui Ketentuan Layanan dan Kebijakan Privasi.", "authLegalLead": "Dengan melanjutkan, Anda menyetujui", @@ -390,7 +390,7 @@ "continueWatchingHeading": "LANJUT TONTON", "preferencesHeading": "PREFERENSI", "brandMark": "YMB", - "shareFooter": "ymb", + "shareFooter": "YMB", "shortsTab": "Drama Pendek", "myListTab": "Daftar Saya", "watchFull": "Tonton Penuh", diff --git a/lib/l10n/app_localizations.dart b/lib/l10n/app_localizations.dart index 675eb3c..364570f 100644 --- a/lib/l10n/app_localizations.dart +++ b/lib/l10n/app_localizations.dart @@ -103,7 +103,7 @@ abstract class AppLocalizations { /// No description provided for @appName. /// /// In en, this message translates to: - /// **'ymb'** + /// **'YMB'** String get appName; /// No description provided for @demo. @@ -217,7 +217,7 @@ abstract class AppLocalizations { /// No description provided for @fruitShortsBrand. /// /// In en, this message translates to: - /// **'ymb'** + /// **'YMB'** String get fruitShortsBrand; /// No description provided for @comingSoon. @@ -1645,7 +1645,7 @@ abstract class AppLocalizations { /// No description provided for @shareFooter. /// /// In en, this message translates to: - /// **'ymb'** + /// **'YMB'** String get shareFooter; /// No description provided for @shortsTab. diff --git a/lib/l10n/app_localizations_en.dart b/lib/l10n/app_localizations_en.dart index a003072..fc4acde 100644 --- a/lib/l10n/app_localizations_en.dart +++ b/lib/l10n/app_localizations_en.dart @@ -9,7 +9,7 @@ class AppLocalizationsEn extends AppLocalizations { AppLocalizationsEn([String locale = 'en']) : super(locale); @override - String get appName => 'ymb'; + String get appName => 'YMB'; @override String get demo => 'DEMO'; @@ -67,7 +67,7 @@ class AppLocalizationsEn extends AppLocalizations { String get recommended => 'Recommended'; @override - String get fruitShortsBrand => 'ymb'; + String get fruitShortsBrand => 'YMB'; @override String get comingSoon => 'Coming soon'; @@ -842,7 +842,7 @@ class AppLocalizationsEn extends AppLocalizations { String get brandMark => 'YMB'; @override - String get shareFooter => 'ymb'; + String get shareFooter => 'YMB'; @override String get shortsTab => 'Shorts'; diff --git a/lib/l10n/app_localizations_id.dart b/lib/l10n/app_localizations_id.dart index 437ff27..e7f0830 100644 --- a/lib/l10n/app_localizations_id.dart +++ b/lib/l10n/app_localizations_id.dart @@ -9,7 +9,7 @@ class AppLocalizationsId extends AppLocalizations { AppLocalizationsId([String locale = 'id']) : super(locale); @override - String get appName => 'ymb'; + String get appName => 'YMB'; @override String get demo => 'Demo'; @@ -67,7 +67,7 @@ class AppLocalizationsId extends AppLocalizations { String get recommended => 'Rekomendasi'; @override - String get fruitShortsBrand => 'ymb'; + String get fruitShortsBrand => 'YMB'; @override String get comingSoon => 'Segera hadir'; @@ -845,7 +845,7 @@ class AppLocalizationsId extends AppLocalizations { String get brandMark => 'YMB'; @override - String get shareFooter => 'ymb'; + String get shareFooter => 'YMB'; @override String get shortsTab => 'Drama Pendek'; diff --git a/lib/l10n/app_localizations_zh.dart b/lib/l10n/app_localizations_zh.dart index 287dd10..a73879c 100644 --- a/lib/l10n/app_localizations_zh.dart +++ b/lib/l10n/app_localizations_zh.dart @@ -9,7 +9,7 @@ class AppLocalizationsZh extends AppLocalizations { AppLocalizationsZh([String locale = 'zh']) : super(locale); @override - String get appName => 'ymb'; + String get appName => 'YMB'; @override String get demo => '演示'; @@ -66,7 +66,7 @@ class AppLocalizationsZh extends AppLocalizations { String get recommended => '推荐'; @override - String get fruitShortsBrand => 'ymb'; + String get fruitShortsBrand => 'YMB'; @override String get comingSoon => '即将上线'; @@ -832,7 +832,7 @@ class AppLocalizationsZh extends AppLocalizations { String get brandMark => 'YMB'; @override - String get shareFooter => 'ymb'; + String get shareFooter => 'YMB'; @override String get shortsTab => '短剧'; diff --git a/lib/l10n/app_zh.arb b/lib/l10n/app_zh.arb index f652e45..dceab4c 100644 --- a/lib/l10n/app_zh.arb +++ b/lib/l10n/app_zh.arb @@ -1,6 +1,6 @@ { "@@locale": "zh", - "appName": "ymb", + "appName": "YMB", "demo": "演示", "homeHeadline": "即刻观看", "homeSubtitle": "免费短剧预览。", @@ -19,7 +19,7 @@ "searchCancel": "取消", "featured": "精选", "recommended": "推荐", - "fruitShortsBrand": "ymb", + "fruitShortsBrand": "YMB", "comingSoon": "即将上线", "authLegal": "继续即代表同意《用户协议》与《隐私政策》", "authLegalLead": "继续即代表同意", @@ -352,7 +352,7 @@ "continueWatchingHeading": "继续观看", "preferencesHeading": "偏好设置", "brandMark": "YMB", - "shareFooter": "ymb", + "shareFooter": "YMB", "shortsTab": "短剧", "myListTab": "片单", "watchFull": "看全集", diff --git a/test/config/brand_identity_test.dart b/test/config/brand_identity_test.dart index eb2c5d5..d9306c4 100644 --- a/test/config/brand_identity_test.dart +++ b/test/config/brand_identity_test.dart @@ -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'CFBundleDisplayName\s*ymb', + r'CFBundleDisplayName\s*YMB', ).hasMatch(plist), isTrue, ); diff --git a/test/config/l10n_id_test.dart b/test/config/l10n_id_test.dart index 88bd0ff..918cfa5 100644 --- a/test/config/l10n_id_test.dart +++ b/test/config/l10n_id_test.dart @@ -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'))); } diff --git a/test/formatting/localized_content_test.dart b/test/formatting/localized_content_test.dart index 8f5935b..b6d73a6 100644 --- a/test/formatting/localized_content_test.dart +++ b/test/formatting/localized_content_test.dart @@ -1,3 +1,6 @@ +// Author: fruit.com.cn +// 验证短剧本地化文案与分享内容。 + import 'package:flutter_test/flutter_test.dart'; import 'package:fruitshorts/core/data/models/drama.dart'; import 'package:fruitshorts/core/formatting/localized_content.dart'; @@ -127,7 +130,7 @@ void main() { expect(copies, hasLength(3)); for (final copy in copies) { - expect(copy, contains('ymb')); + expect(copy, contains('YMB')); expect(copy.split('\n'), hasLength(3)); expect(copy.split('\n').every((line) => line.isNotEmpty), isTrue); } diff --git a/test/widget_test.dart b/test/widget_test.dart index 8082228..fae3233 100644 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -265,7 +265,7 @@ void main() { await tester.tap(find.byKey(const Key('player-rail-share'))); await tester.pumpAndSettle(); expect(sharedText, contains('City Lights & Velvet Nights')); - expect(sharedText, contains('ymb')); + expect(sharedText, contains('YMB')); expect(tester.takeException(), isNull); });