Skip to content

Commit

Permalink
Added dummy chinese files
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Mar 3, 2021
1 parent b71e05d commit ea66992
Show file tree
Hide file tree
Showing 13 changed files with 6,005 additions and 0 deletions.
5,760 changes: 5,760 additions & 0 deletions assets/i18n/zh_CN.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/domain/app_constants.dart
Expand Up @@ -8,5 +8,6 @@ const artifactOrder = [4, 2, 5, 1, 3];
final languagesMap = {
AppLanguageType.english: LanguageModel('en', 'US'),
AppLanguageType.spanish: LanguageModel('es', 'ES'),
AppLanguageType.simplifiedChinese: LanguageModel('zh', 'CN'),
// AppLanguageType.french: LanguageModel('fr', 'FR'),
};
2 changes: 2 additions & 0 deletions lib/domain/assets.dart
Expand Up @@ -101,6 +101,8 @@ class Assets {
return '$translationsBasePath/es.json';
case AppLanguageType.french:
return '$translationsBasePath/fr.json';
case AppLanguageType.simplifiedChinese:
return '$translationsBasePath/zh_CN.json';
default:
throw Exception('Invalid language = $languageType');
}
Expand Down
1 change: 1 addition & 0 deletions lib/domain/enums/app_language_type.dart
Expand Up @@ -2,4 +2,5 @@ enum AppLanguageType {
english,
spanish,
french,
simplifiedChinese,
}
4 changes: 4 additions & 0 deletions lib/generated/intl/messages_all.dart
Expand Up @@ -18,12 +18,14 @@ import 'package:intl/src/intl_helpers.dart';
import 'messages_en.dart' as messages_en;
import 'messages_es_ES.dart' as messages_es_es;
import 'messages_fr.dart' as messages_fr;
import 'messages_zh_CN.dart' as messages_zh_cn;

typedef Future<dynamic> LibraryLoader();
Map<String, LibraryLoader> _deferredLibraries = {
'en': () => new Future.value(null),
'es_ES': () => new Future.value(null),
'fr': () => new Future.value(null),
'zh_CN': () => new Future.value(null),
};

MessageLookupByLibrary _findExact(String localeName) {
Expand All @@ -34,6 +36,8 @@ MessageLookupByLibrary _findExact(String localeName) {
return messages_es_es.messages;
case 'fr':
return messages_fr.messages;
case 'zh_CN':
return messages_zh_cn.messages;
default:
return null;
}
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_en.dart
Expand Up @@ -242,6 +242,7 @@ class MessageLookup extends MessageLookupByLibrary {
"short" : MessageLookupByLibrary.simpleMessage("Short"),
"showCharacterDetails" : MessageLookupByLibrary.simpleMessage("Show character details"),
"showWeaponDetails" : MessageLookupByLibrary.simpleMessage("Show weapon details"),
"simplifiedChinese" : MessageLookupByLibrary.simpleMessage("Chinese (Simplified)"),
"skills" : MessageLookupByLibrary.simpleMessage("Skills"),
"sortBy" : MessageLookupByLibrary.simpleMessage("Sort by"),
"sortDirection" : MessageLookupByLibrary.simpleMessage("Sort direction"),
Expand Down
1 change: 1 addition & 0 deletions lib/generated/intl/messages_es_ES.dart
Expand Up @@ -241,6 +241,7 @@ class MessageLookup extends MessageLookupByLibrary {
"short" : MessageLookupByLibrary.simpleMessage("Corto"),
"showCharacterDetails" : MessageLookupByLibrary.simpleMessage("Mostrar el detalle de los personajes"),
"showWeaponDetails" : MessageLookupByLibrary.simpleMessage("Mostrar el detalle de las armas"),
"simplifiedChinese" : MessageLookupByLibrary.simpleMessage("Chino (Simplificado)"),
"skills" : MessageLookupByLibrary.simpleMessage("Habilidades"),
"sortBy" : MessageLookupByLibrary.simpleMessage("Ordenar por"),
"sortDirection" : MessageLookupByLibrary.simpleMessage("Dirección de ordenamiento"),
Expand Down
11 changes: 11 additions & 0 deletions lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/l10n/intl_en.arb
Expand Up @@ -5,6 +5,7 @@
"english": "English",
"spanish": "Spanish",
"french": "French",
"simplifiedChinese": "Chinese (Simplified)",
"bow": "Bow",
"claymore": "Claymore",
"sword": "Sword",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/intl_es_ES.arb
Expand Up @@ -5,6 +5,7 @@
"english": "Inglés",
"spanish": "Español",
"french": "Francés",
"simplifiedChinese": "Chino (Simplificado)",
"bow": "Arco",
"claymore": "Mandoble",
"sword": "Espada",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/intl_fr.arb
Expand Up @@ -5,6 +5,7 @@
"english": "English",
"spanish": "Spanish",
"french": "French",
"simplifiedChinese": "Chinese (Simplified)",
"bow": "Arcs",
"claymore": "Epées a 2 mains",
"sword": "Epées a 1 main",
Expand Down
219 changes: 219 additions & 0 deletions lib/l10n/intl_zh_CN.arb
@@ -0,0 +1,219 @@
{
"appName": "GenshinDb",
"dark": "Dark",
"light": "Light",
"english": "English",
"spanish": "Spanish",
"french": "French",
"simplifiedChinese": "Chinese (Simplified)",
"bow": "Bow",
"claymore": "Claymore",
"sword": "Sword",
"polearm": "Polearm",
"catalyst": "Catalyst",
"none": "None",
"atk": "{value} ATK",
"atkPercentage": "{value} ATK %",
"defPercentage": "{value} DEF %",
"def": "{value} DEF",
"critAtk": "{value} CRIT ATK",
"critRate": "{value} CRIT Rate",
"critRatePercentage": "{value} CRIT Rate %",
"critDmgPercentage": "{value} CRIT DMG %",
"elementaryMastery": "{value} Elementary Mastery",
"hpPercentage": "{value} HP %",
"physDmgPercentage": "{value} PHYS DMG %",
"physDmgBonus": "{value} PHYS DMG Bonus",
"energyRechargePercentage": "{value} Energy Recharge %",
"hp": "{value} HP",
"xDmgBonusPercentage": "{value} {x} DMG Bonus %",
"healingBonusPercentage": "{value} Healing Bonus %",
"gacha": "Gacha",
"crafting": "Crafting",
"starglitterExchange": "Starglitter Exchange",
"chest": "Chest",
"bpBounty": "BP Bounty",
"monday": "Monday",
"tuesday": "Tuesday",
"wednesday": "Wednesday",
"thursday": "Thursday",
"friday": "Friday",
"saturday": "Saturday",
"sunday": "Sunday",
"all": "All",
"description": "Description",
"rarity": "Rarity",
"element": "Element",
"region": "Region",
"weapon": "Weapon",
"role": "Role",
"gender": "Gender",
"male": "Male",
"female": "Female",
"elements": "Elements",
"elementalDebuffs": "Elemental Debuffs",
"elementalDebuffsExplained": "Each of these have a different negative effect when applied to you or your enemies",
"elementalReactions": "Elemental Reactions",
"elementalReactionsExplained": "Combinations of different elements produces different reactions",
"elementalResonances": "Elemental Resonances",
"elementalResonancesExplained": "Having these types of character in your party will give you the corresponding effect",
"todayAscensionMaterials": "Today's Ascension Materials",
"seeAll": "See all",
"characters": "Characters",
"weapons": "Weapons",
"artifacts": "Artifacts",
"home": "Home",
"map": "Map",
"type": "Type",
"baseAtk": "Base ATK",
"secondaryState": "Secondary Stat",
"secondaryStatValue": "Secondary Stat Value",
"location": "Location",
"loading": "Loading",
"forCharacters": "For characters",
"forWeapons": "For weapons",
"cancel": "Cancel",
"ok": "Ok",
"others": "Others",
"filters": "Filters",
"sortBy": "Sort by",
"flower": "Flower",
"plume": "Plume",
"clock": "Clock",
"goblet": "Goblet",
"crown": "Crown",
"elementalDmgPercentage": "Elemental DMG %",
"healingBonus": "Healing Bonus",
"note": "Note",
"ascensionMaterials": "Ascension Materials",
"released": "Released",
"unreleased": "Unreleased",
"comingSoon": "Coming soon",
"recent": "Recent",
"rank": "Rank",
"level": "Level",
"materials": "Materials",
"constellationX": "Constellation {value}",
"constellations": "Constellations",
"passives": "Passives",
"unlockedAutomatically": "Unlocked Automatically",
"unlockedAtAscensionLevelX": "Unlocked at ascension level {value}",
"skills": "Skills",
"talentsAscension": "Talents Ascension",
"talentAscensionX": "Talent Ascension {value}",
"search": "Search",
"sortDirection": "Sort direction",
"refinements": "Refinements",
"sortType": "Sort type",
"asc": "Ascending",
"desc": "Descending",
"name": "Name",
"weaponType": "Weapon type",
"nothingToShow": "Nothing to show",
"theme": "Theme",
"settings": "Settings",
"accentColor": "Accent color",
"chooseBaseAppTheme": "Choose base app theme",
"chooseAccentColor": "Choose an accent color",
"language": "Language",
"chooseLanguage": "Choose a language",
"appVersion": "Version: {version}",
"about": "About",
"aboutSummary": "A Genshin Impact kinda database app",
"appInfo": "App information",
"support": "Support",
"supportMsg": "I made this app in my free time and it is also open source. If you would like to help me, report an issue, have an idea, want a feature to be implemented, etc, please open an issue in my Github:",
"issues": "Issues",
"disclaimer": "Disclaimer",
"disclaimerMsg": "This app is not affiliated with or endorsed by miHoYo. GenshinDb is just a database app for the Genshin Impact game",
"restartMayBeNeeded": "A restart may be needed for the changes to take effect",
"youCanAlsoSendMeAnEmail": "You can also send me an email",
"partial": "Partial",
"brandNew": "New",
"noInternetConnection": "No internet connection",
"wishSimulator": "Wish simulator",
"tryYourLuck": "Try your luck with this simulator",
"bonus": "Bonus",
"pieces": "Pieces",
"builds": "Builds",
"dps": "DPS",
"or": "Or",
"rateThisApp": "Rate this app",
"rateMsg": "If you like this app, please take a little bit of your time to review it !\nIt really helps me and it shouldn't take you more than one minute.",
"rate": "Rate",
"noThanks": "No thanks",
"maybeLater": "Maybe later",
"otherApps": "Other apps",
"generalSettings": "General settings",
"showCharacterDetails": "Show character details",
"showWeaponDetails": "Show weapon details",
"quest": "Quest",
"subStat": "Sub. Stat",
"na": "N/A",
"mainDps": "Main DPS",
"supportDps": "Support DPS",
"utility": "Utility",
"normalAttack": "Normal Attack",
"elementalSkill": "Elemental Skill",
"elementalBurst": "Elemental Burst",
"chargedAttack": "Charged Attack",
"plungingAttack": "Plunging Attack",
"hold": "Hold",
"press": "Press",
"short": "Short",
"elementalAbsorption": "Elemental Absorption",
"xPieces": "{value} Piece(s)",
"anotherWorld": "Another World",
"calculators": "Calculators",
"ascensionMaterialsCalculatorMsg": "Check how many materials you will need for a character / weapon",
"addCharacter" : "Add character",
"addWeapon": "Add weapon",
"startByAddingMsg": "Start by adding some characters / weapons",
"currentLevel": "Current level",
"desiredLevel": "Desired level",
"selectCharacter": "Select a character",
"selectWeapon": "Select a weapon",
"character": "Character",
"summary": "Summary",
"common": "Common",
"localSpecialities": "Local Specialities",
"boss": "Boss",
"day": "Day",
"currency": "Currency",
"birthday": "Birthday",
"todayBirthdays": "Today's Birthdays",
"happyBirthday": "Happy Birthday!",
"tierListBuilder": "Tier List Builder",
"buildYourOwnTierList": "Build your own character tier list",
"imgSavedSuccessfully": "Image was successfully saved to the gallery",
"acceptToSaveImg": "To save the image you need to accept the requested permission",
"save": "Save",
"clearAll": "Clear all",
"restore": "Restore",
"unknownError": "Unknown error occurred",
"addRowAbove": "Add row above",
"addRowBelow": "Add row below",
"deleteRow": "Delete row",
"clearRow": "Clear row",
"changeColor": "Change color",
"rowSettings": "Row settings",
"rename": "Rename",
"confirm": "Confirm",
"pickColor": "Pick a color",
"stats": "Stats",
"baseX": "Base {value}",
"northAmerica": "North America",
"europe": "Europe",
"asia": "Asia",
"chooseServer": "Choose a server",
"serverWhereYouPlay":"The server where you play",
"subStats": "Substats",
"anemo": "Anemo",
"cryo": "Cryo",
"dendro": "Dendro",
"electro": "Electro",
"geo": "Geo",
"pyro": "Pyro",
"hydro": "Hydro",
"craftingMaterials": "Crafting Materials"
}
2 changes: 2 additions & 0 deletions lib/presentation/shared/extensions/i18n_extensions.dart
Expand Up @@ -21,6 +21,8 @@ extension I18nExtensions on S {
return '$spanish ($partial)';
case AppLanguageType.french:
return '$french ($partial)';
case AppLanguageType.simplifiedChinese:
return '$simplifiedChinese ($partial)';
default:
throw Exception('The provided app lang = $lang is not valid');
}
Expand Down

0 comments on commit ea66992

Please sign in to comment.