style(brand): 统一三语与双平台 YMB 展示名

This commit is contained in:
Zhou Weidong committed 2026-11-17 09:59:05 +08:00
1 parent 52e1883862
commit bcf2dfe02a
13 files changed
+33 -30

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@
<uses-permission
android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
android:label="ymb"
android:label="YMB"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:usesCleartextTraffic="true">
+1 -1
View File
@@ -7,7 +7,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>ymb</string>
<string>YMB</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
+3 -3
View File
@@ -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",
+3 -3
View File
@@ -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",
+3 -3
View File
@@ -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.
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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';
+3 -3
View File
@@ -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 => '短剧';
+3 -3
View File
@@ -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": "看全集",
+3 -3
View File
@@ -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,
);
+2 -2
View File
@@ -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')));
}
+4 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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);
});