style(brand): 统一三语与双平台 YMB 展示名
This commit is contained in:
1 parent
52e1883862
commit
bcf2dfe02a
13 files changed
+33
-30
No files matched your search
@@ -6,7 +6,7 @@
|
|||||||
<uses-permission
|
<uses-permission
|
||||||
android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
||||||
<application
|
<application
|
||||||
android:label="ymb"
|
android:label="YMB"
|
||||||
android:name="${applicationName}"
|
android:name="${applicationName}"
|
||||||
android:icon="@mipmap/ic_launcher"
|
android:icon="@mipmap/ic_launcher"
|
||||||
android:usesCleartextTraffic="true">
|
android:usesCleartextTraffic="true">
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>ymb</string>
|
<string>YMB</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>$(EXECUTABLE_NAME)</string>
|
<string>$(EXECUTABLE_NAME)</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"@@locale": "en",
|
"@@locale": "en",
|
||||||
"appName": "ymb",
|
"appName": "YMB",
|
||||||
"demo": "DEMO",
|
"demo": "DEMO",
|
||||||
"homeHeadline": "Watch now",
|
"homeHeadline": "Watch now",
|
||||||
"homeSubtitle": "Free short drama preview.",
|
"homeSubtitle": "Free short drama preview.",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"searchCancel": "Cancel",
|
"searchCancel": "Cancel",
|
||||||
"featured": "Featured",
|
"featured": "Featured",
|
||||||
"recommended": "Recommended",
|
"recommended": "Recommended",
|
||||||
"fruitShortsBrand": "ymb",
|
"fruitShortsBrand": "YMB",
|
||||||
"comingSoon": "Coming soon",
|
"comingSoon": "Coming soon",
|
||||||
"authLegal": "By continuing, you agree to the Terms of Service and Privacy Policy.",
|
"authLegal": "By continuing, you agree to the Terms of Service and Privacy Policy.",
|
||||||
"authLegalLead": "By continuing, you agree to the",
|
"authLegalLead": "By continuing, you agree to the",
|
||||||
@@ -416,7 +416,7 @@
|
|||||||
"continueWatchingHeading": "CONTINUE WATCHING",
|
"continueWatchingHeading": "CONTINUE WATCHING",
|
||||||
"preferencesHeading": "PREFERENCES",
|
"preferencesHeading": "PREFERENCES",
|
||||||
"brandMark": "YMB",
|
"brandMark": "YMB",
|
||||||
"shareFooter": "ymb",
|
"shareFooter": "YMB",
|
||||||
"shortsTab": "Shorts",
|
"shortsTab": "Shorts",
|
||||||
"myListTab": "My List",
|
"myListTab": "My List",
|
||||||
"watchFull": "Watch Full",
|
"watchFull": "Watch Full",
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"@@locale": "id",
|
"@@locale": "id",
|
||||||
"appName": "ymb",
|
"appName": "YMB",
|
||||||
"demo": "Demo",
|
"demo": "Demo",
|
||||||
"homeHeadline": "Tonton sekarang",
|
"homeHeadline": "Tonton sekarang",
|
||||||
"homeSubtitle": "Pratinjau drama pendek gratis.",
|
"homeSubtitle": "Pratinjau drama pendek gratis.",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"searchCancel": "Batal",
|
"searchCancel": "Batal",
|
||||||
"featured": "Unggulan",
|
"featured": "Unggulan",
|
||||||
"recommended": "Rekomendasi",
|
"recommended": "Rekomendasi",
|
||||||
"fruitShortsBrand": "ymb",
|
"fruitShortsBrand": "YMB",
|
||||||
"comingSoon": "Segera hadir",
|
"comingSoon": "Segera hadir",
|
||||||
"authLegal": "Dengan melanjutkan, Anda menyetujui Ketentuan Layanan dan Kebijakan Privasi.",
|
"authLegal": "Dengan melanjutkan, Anda menyetujui Ketentuan Layanan dan Kebijakan Privasi.",
|
||||||
"authLegalLead": "Dengan melanjutkan, Anda menyetujui",
|
"authLegalLead": "Dengan melanjutkan, Anda menyetujui",
|
||||||
@@ -390,7 +390,7 @@
|
|||||||
"continueWatchingHeading": "LANJUT TONTON",
|
"continueWatchingHeading": "LANJUT TONTON",
|
||||||
"preferencesHeading": "PREFERENSI",
|
"preferencesHeading": "PREFERENSI",
|
||||||
"brandMark": "YMB",
|
"brandMark": "YMB",
|
||||||
"shareFooter": "ymb",
|
"shareFooter": "YMB",
|
||||||
"shortsTab": "Drama Pendek",
|
"shortsTab": "Drama Pendek",
|
||||||
"myListTab": "Daftar Saya",
|
"myListTab": "Daftar Saya",
|
||||||
"watchFull": "Tonton Penuh",
|
"watchFull": "Tonton Penuh",
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ abstract class AppLocalizations {
|
|||||||
/// No description provided for @appName.
|
/// No description provided for @appName.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
/// **'ymb'**
|
/// **'YMB'**
|
||||||
String get appName;
|
String get appName;
|
||||||
|
|
||||||
/// No description provided for @demo.
|
/// No description provided for @demo.
|
||||||
@@ -217,7 +217,7 @@ abstract class AppLocalizations {
|
|||||||
/// No description provided for @fruitShortsBrand.
|
/// No description provided for @fruitShortsBrand.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
/// **'ymb'**
|
/// **'YMB'**
|
||||||
String get fruitShortsBrand;
|
String get fruitShortsBrand;
|
||||||
|
|
||||||
/// No description provided for @comingSoon.
|
/// No description provided for @comingSoon.
|
||||||
@@ -1645,7 +1645,7 @@ abstract class AppLocalizations {
|
|||||||
/// No description provided for @shareFooter.
|
/// No description provided for @shareFooter.
|
||||||
///
|
///
|
||||||
/// In en, this message translates to:
|
/// In en, this message translates to:
|
||||||
/// **'ymb'**
|
/// **'YMB'**
|
||||||
String get shareFooter;
|
String get shareFooter;
|
||||||
|
|
||||||
/// No description provided for @shortsTab.
|
/// No description provided for @shortsTab.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
AppLocalizationsEn([String locale = 'en']) : super(locale);
|
AppLocalizationsEn([String locale = 'en']) : super(locale);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appName => 'ymb';
|
String get appName => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get demo => 'DEMO';
|
String get demo => 'DEMO';
|
||||||
@@ -67,7 +67,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
String get recommended => 'Recommended';
|
String get recommended => 'Recommended';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get fruitShortsBrand => 'ymb';
|
String get fruitShortsBrand => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get comingSoon => 'Coming soon';
|
String get comingSoon => 'Coming soon';
|
||||||
@@ -842,7 +842,7 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||||||
String get brandMark => 'YMB';
|
String get brandMark => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get shareFooter => 'ymb';
|
String get shareFooter => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get shortsTab => 'Shorts';
|
String get shortsTab => 'Shorts';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class AppLocalizationsId extends AppLocalizations {
|
|||||||
AppLocalizationsId([String locale = 'id']) : super(locale);
|
AppLocalizationsId([String locale = 'id']) : super(locale);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appName => 'ymb';
|
String get appName => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get demo => 'Demo';
|
String get demo => 'Demo';
|
||||||
@@ -67,7 +67,7 @@ class AppLocalizationsId extends AppLocalizations {
|
|||||||
String get recommended => 'Rekomendasi';
|
String get recommended => 'Rekomendasi';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get fruitShortsBrand => 'ymb';
|
String get fruitShortsBrand => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get comingSoon => 'Segera hadir';
|
String get comingSoon => 'Segera hadir';
|
||||||
@@ -845,7 +845,7 @@ class AppLocalizationsId extends AppLocalizations {
|
|||||||
String get brandMark => 'YMB';
|
String get brandMark => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get shareFooter => 'ymb';
|
String get shareFooter => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get shortsTab => 'Drama Pendek';
|
String get shortsTab => 'Drama Pendek';
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||||||
AppLocalizationsZh([String locale = 'zh']) : super(locale);
|
AppLocalizationsZh([String locale = 'zh']) : super(locale);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get appName => 'ymb';
|
String get appName => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get demo => '演示';
|
String get demo => '演示';
|
||||||
@@ -66,7 +66,7 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||||||
String get recommended => '推荐';
|
String get recommended => '推荐';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get fruitShortsBrand => 'ymb';
|
String get fruitShortsBrand => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get comingSoon => '即将上线';
|
String get comingSoon => '即将上线';
|
||||||
@@ -832,7 +832,7 @@ class AppLocalizationsZh extends AppLocalizations {
|
|||||||
String get brandMark => 'YMB';
|
String get brandMark => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get shareFooter => 'ymb';
|
String get shareFooter => 'YMB';
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get shortsTab => '短剧';
|
String get shortsTab => '短剧';
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"@@locale": "zh",
|
"@@locale": "zh",
|
||||||
"appName": "ymb",
|
"appName": "YMB",
|
||||||
"demo": "演示",
|
"demo": "演示",
|
||||||
"homeHeadline": "即刻观看",
|
"homeHeadline": "即刻观看",
|
||||||
"homeSubtitle": "免费短剧预览。",
|
"homeSubtitle": "免费短剧预览。",
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
"searchCancel": "取消",
|
"searchCancel": "取消",
|
||||||
"featured": "精选",
|
"featured": "精选",
|
||||||
"recommended": "推荐",
|
"recommended": "推荐",
|
||||||
"fruitShortsBrand": "ymb",
|
"fruitShortsBrand": "YMB",
|
||||||
"comingSoon": "即将上线",
|
"comingSoon": "即将上线",
|
||||||
"authLegal": "继续即代表同意《用户协议》与《隐私政策》",
|
"authLegal": "继续即代表同意《用户协议》与《隐私政策》",
|
||||||
"authLegalLead": "继续即代表同意",
|
"authLegalLead": "继续即代表同意",
|
||||||
@@ -352,7 +352,7 @@
|
|||||||
"continueWatchingHeading": "继续观看",
|
"continueWatchingHeading": "继续观看",
|
||||||
"preferencesHeading": "偏好设置",
|
"preferencesHeading": "偏好设置",
|
||||||
"brandMark": "YMB",
|
"brandMark": "YMB",
|
||||||
"shareFooter": "ymb",
|
"shareFooter": "YMB",
|
||||||
"shortsTab": "短剧",
|
"shortsTab": "短剧",
|
||||||
"myListTab": "片单",
|
"myListTab": "片单",
|
||||||
"watchFull": "看全集",
|
"watchFull": "看全集",
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ void main() {
|
|||||||
test('should_use_ymb_when_resolving_each_app_locale', () async {
|
test('should_use_ymb_when_resolving_each_app_locale', () async {
|
||||||
for (final locale in AppLocalizations.supportedLocales) {
|
for (final locale in AppLocalizations.supportedLocales) {
|
||||||
final l10n = await AppLocalizations.delegate.load(locale);
|
final l10n = await AppLocalizations.delegate.load(locale);
|
||||||
expect(l10n.appName, 'ymb');
|
expect(l10n.appName, 'YMB');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -118,11 +118,11 @@ void main() {
|
|||||||
final manifest = File(
|
final manifest = File(
|
||||||
'android/app/src/main/AndroidManifest.xml',
|
'android/app/src/main/AndroidManifest.xml',
|
||||||
).readAsStringSync();
|
).readAsStringSync();
|
||||||
expect(manifest, contains('android:label="ymb"'));
|
expect(manifest, contains('android:label="YMB"'));
|
||||||
final plist = File('ios/Runner/Info.plist').readAsStringSync();
|
final plist = File('ios/Runner/Info.plist').readAsStringSync();
|
||||||
expect(
|
expect(
|
||||||
RegExp(
|
RegExp(
|
||||||
r'<key>CFBundleDisplayName</key>\s*<string>ymb</string>',
|
r'<key>CFBundleDisplayName</key>\s*<string>YMB</string>',
|
||||||
).hasMatch(plist),
|
).hasMatch(plist),
|
||||||
isTrue,
|
isTrue,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ void main() {
|
|||||||
for (final locale in const [Locale('en'), Locale('zh'), Locale('id')]) {
|
for (final locale in const [Locale('en'), Locale('zh'), Locale('id')]) {
|
||||||
final l10n = await AppLocalizations.delegate.load(locale);
|
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.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.brandMark.toLowerCase(), isNot(contains('demo')));
|
||||||
expect(l10n.shareFooter.toLowerCase(), isNot(contains('demo')));
|
expect(l10n.shareFooter.toLowerCase(), isNot(contains('demo')));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
// Author: fruit.com.cn
|
||||||
|
// 验证短剧本地化文案与分享内容。
|
||||||
|
|
||||||
import 'package:flutter_test/flutter_test.dart';
|
import 'package:flutter_test/flutter_test.dart';
|
||||||
import 'package:fruitshorts/core/data/models/drama.dart';
|
import 'package:fruitshorts/core/data/models/drama.dart';
|
||||||
import 'package:fruitshorts/core/formatting/localized_content.dart';
|
import 'package:fruitshorts/core/formatting/localized_content.dart';
|
||||||
@@ -127,7 +130,7 @@ void main() {
|
|||||||
|
|
||||||
expect(copies, hasLength(3));
|
expect(copies, hasLength(3));
|
||||||
for (final copy in copies) {
|
for (final copy in copies) {
|
||||||
expect(copy, contains('ymb'));
|
expect(copy, contains('YMB'));
|
||||||
expect(copy.split('\n'), hasLength(3));
|
expect(copy.split('\n'), hasLength(3));
|
||||||
expect(copy.split('\n').every((line) => line.isNotEmpty), isTrue);
|
expect(copy.split('\n').every((line) => line.isNotEmpty), isTrue);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ void main() {
|
|||||||
await tester.tap(find.byKey(const Key('player-rail-share')));
|
await tester.tap(find.byKey(const Key('player-rail-share')));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(sharedText, contains('City Lights & Velvet Nights'));
|
expect(sharedText, contains('City Lights & Velvet Nights'));
|
||||||
expect(sharedText, contains('ymb'));
|
expect(sharedText, contains('YMB'));
|
||||||
expect(tester.takeException(), isNull);
|
expect(tester.takeException(), isNull);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user