Broader i18n (#270)

* i18n footer

* i18n wish counter detail title

* camelCase

* Update

* i18n furnishing

* i18n Credits

* Update

* i18n privacy policy ad

* Typo

* typo

* Remove submodule

Co-authored-by: Made Baruna <made.setia@gmail.com>
pull/1/head
lakejason0 2022-07-01 23:28:28 +08:00 committed by GitHub
parent 3ae3ae995c
commit 8c8738777d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 105 additions and 113 deletions

View File

@ -390,11 +390,7 @@
"Du kannst auch den",
"Knopf drücken, um die Werte manuell zu bearbeiten!"
],
"p6": [
"Drücke Sie auf den Pfeil nach unten um die Details Ihrer Pulls zu sehen. Ein Popup wird angezeigt, wenn du ein",
"oder",
"Sie können die Tabelle auch manuell hinzufügen oder bearbeiten."
]
"p6": "Drücke Sie auf den Pfeil nach unten um die Details Ihrer Pulls zu sehen. Ein Popup wird angezeigt, wenn du ein 5★ oder 4★. Sie können die Tabelle auch manuell hinzufügen oder bearbeiten."
}
},
"types": {

View File

@ -390,11 +390,7 @@
"You can also press the",
"button to edit the values manually!"
],
"p6": [
"Press the arrow on the bottom to see your pulls' details. A popup will show up when you get a",
"or",
"You can also add or edit the table manually."
]
"p6": "Press the arrow on the bottom to see your pulls' details. A popup will show up when you get a 5★ or 4★. You can also add or edit the table manually."
}
},
"types": {
@ -416,7 +412,11 @@
"worth": "Worth",
"loading": "Loading... (If this page is stuck, change your server on the settings page)",
"guaranteed": "The next {rarity}★ is guaranteed to be the promotional character or weapon",
"unknown_3_star": "Unknown"
"unknown_3_star": "Unknown",
"rarity": "Rarity",
"total": "Total",
"percent": "Percent",
"pityAverage": "Pity AVG"
},
"tally": {
"title": "Global Wish Stats",
@ -440,6 +440,13 @@
"user": "Total Users",
"detail": "Detail"
},
"summary": {
"total": "Total",
"percent": "Percent",
"pityAverage": "Pity AVG",
"character": "Character",
"weapon": "Weapon"
},
"note": [
"Wish history is not updated automatically, please import again to update your history!",
"Paimon.moe cannot retrieve wishes older than 6 months because it has already deleted on HoYoVerse's servers, so your old wishes might not show up.",
@ -675,6 +682,23 @@
"feedback": "If you found any bugs, wrong data, or any other feedback, please leave a message on",
"or": "or",
"thanks": "Thanks😁!",
"credits": {
"title": "Credits",
"items": [
{
"name": "Data and images",
"value": "Genshin Impact Wiki"
},
{
"name": "Stats data",
"value": "Dimbreath Genshin Data"
},
{
"name": "Drop rates for resin calculation",
"value": "Data Gathering Discord"
}
]
},
"setMainAccount": "Set As Main Account",
"modal": {
"notice": "All Todo and Wish history data will be deleted",
@ -738,6 +762,16 @@
"paimon-moe-api Github",
"and",
"paimon-moe Github"
],
"subtitleAd": "Advertisements",
"ad": [
"We use third party advertisements to support our site. Some of these advertisers may be served from our third party advertiser.",
"You can view their",
" privacy policy",
"and",
"cookie policy",
"here. You can manage your cookies",
"here"
]
},
"sync": {
@ -757,7 +791,16 @@
"copyright": "Genshin Impact, game content and materials are trademarks and copyrights of HoYoverse.",
"discord": "Join Our Discord",
"community": "Community Links",
"official": "Official Links"
"official": "Official Links",
"link": {
"github": "GitHub",
"discord": "Discord",
"devTwitter": "Dev Twitter",
"reddit": "Reddit",
"facebook": "Facebook",
"cookieSettings": "Cookie Settings",
"privacyPolicy": "Privacy Policy"
}
},
"donate": {
"message": [
@ -821,6 +864,7 @@
"corridor": "Corridor",
"inventoryButton": "Inventory",
"listButton": "List",
"selectCharacter": "Select character...",
"inventory": {
"title": "Furnishing Inventory",
"subtitle": "Some special categories like walls are not shown",
@ -895,4 +939,4 @@
"dataSynced": "Data has been synced!",
"driveError": "Drive sync not available right now 😔"
}
}
}

View File

@ -390,11 +390,7 @@
"¡Puedes además pulsar el botón",
"para editar los valores manualmente!"
],
"p6": [
"Pulsa la flecha sobre el botón para ver los detalles de tus tiradas. Una ventana emergente mostrará cuando conseguiste un",
"o",
"Puedes además añadir o editar la tabla manualmente."
]
"p6": "Pulsa la flecha sobre el botón para ver los detalles de tus tiradas. Una ventana emergente mostrará cuando conseguiste un 5★ o 4★. Puedes además añadir o editar la tabla manualmente."
}
},
"types": {

View File

@ -390,11 +390,7 @@
"Vous pouvez aussi cliquer sur le bouton",
"pour éditer les valeurs manuellement !"
],
"p6": [
"Cliquez sur la flèche en bas pour voir les détails de vos voeux. Une popup va apparaître quand vous aurez un",
"ou un",
"Vous pouvez aussi éditer le tableau manuellement."
]
"p6": "Cliquez sur la flèche en bas pour voir les détails de vos voeux. Une popup va apparaître quand vous aurez un 5★ ou un 4★. Vous pouvez aussi éditer le tableau manuellement."
}
},
"types": {

View File

@ -390,11 +390,7 @@
"Kamu juga bisa menekan",
"untuk mengedit nilai nya secara manual!"
],
"p6": [
"Tekan tombol panah dibawah untuk melihat detail riwayat mu. Sebuah form akan muncul ketika kamu mendapat",
"atau",
"Atau kamu bisa menambahkan atau mengedit tabel nya secara manual."
]
"p6": "Tekan tombol panah dibawah untuk melihat detail riwayat mu. Sebuah form akan muncul ketika kamu mendapat 5★ atau 4★. Atau kamu bisa menambahkan atau mengedit tabel nya secara manual."
}
},
"types": {

View File

@ -390,11 +390,7 @@
"また、このボタン",
"で手動で編集できます!"
],
"p6": [
"下にある矢印をクリックすると祈願詳細を確認することができます。",
"や",
"が出るとポップアップが表示されます。手動で祈願表を調整することもできます。"
]
"p6": "下にある矢印をクリックすると祈願詳細を確認することができます。5★ や 4★ が出るとポップアップが表示されます。手動で祈願表を調整することもできます。"
}
},
"types": {

View File

@ -390,11 +390,7 @@
"또는",
"버튼을 눌러 값들을 직접 고칠 수도 있습니다!"
],
"p6": [
"아래쪽에 있는 화살표를 눌러 상세 뽑기 결과를 볼 수 있습니다",
"또는",
"를 누르면 팝업이 나타나, 데이터를 수정할 수 있고 데이터를 수동으로 추가할 수도 있습니다."
]
"p6": "아래쪽에 있는 화살표를 눌러 상세 뽑기 결과를 볼 수 있습니다. 5★ 또는 4★ 를 누르면 팝업이 나타나, 데이터를 수정할 수 있고 데이터를 수동으로 추가할 수도 있습니다."
}
},
"types": {

View File

@ -390,11 +390,7 @@
"Você também pode pressionar o botão",
"para editar os valores manualmente!"
],
"p6": [
"Pressione a seta abaixo para visualizar os detalhes das orações. Um pop-up irá aparecer quando você conseguir um item",
"ou",
"Você também pode adicionar ou editar a tabela manualmente."
]
"p6": "Pressione a seta abaixo para visualizar os detalhes das orações. Um pop-up irá aparecer quando você conseguir um item 5★ ou 4★. Você também pode adicionar ou editar a tabela manualmente."
}
},
"types": {

View File

@ -391,9 +391,7 @@
"кнопку чтобы редактировать значения вручную!"
],
"p6": [
"Нажмите на стрелку ниже, чтобы увидеть подробности о ваших молитвах. Всплывающее окно появится, когда вы получите",
"или",
"Вы также можете добавить или редактировать таблицу вручную."
"Нажмите на стрелку ниже, чтобы увидеть подробности о ваших молитвах. Всплывающее окно появится, когда вы получите 5★ или 4★. Вы также можете добавить или редактировать таблицу вручную."
]
}
},

View File

@ -390,11 +390,7 @@
"คุณสามารถกดปุ่ม",
"เพื่อแก้ไขข้อมูลที่เพิ่มไปแล้วได้ด้วย!"
],
"p6": [
"กดปุ่มลูกศรด้านล่างเพื่อดูรายละเอียดการอธิษฐาน จะมีหน้าต่างโผล่ขึ้นมาเมื่อคุณได้รับ",
"หรือ",
"คุณยังสามารถเพิ่มหรือแก้ไขตารางได้เองทุกเมื่อ"
]
"p6": "กดปุ่มลูกศรด้านล่างเพื่อดูรายละเอียดการอธิษฐาน จะมีหน้าต่างโผล่ขึ้นมาเมื่อคุณได้รับ 5★ หรือ 4★ คุณยังสามารถเพิ่มหรือแก้ไขตารางได้เองทุกเมื่อ"
}
},
"types": {

View File

@ -390,11 +390,7 @@
"你也可以按",
"按鈕來手動修改數值!"
],
"p6": [
"點擊按鈕上的箭頭來檢視你的具體抽卡細節。會自動彈出提示你獲得一個",
"或",
"你也可以手動編輯列表。"
]
"p6": "點擊按鈕上的箭頭來檢視你的具體抽卡細節。會自動彈出提示你獲得一個 5★ 或 4★。你也可以手動編輯列表。"
}
},
"types": {

View File

@ -390,11 +390,7 @@
"Bạn cũng có thể nhấn nút",
"để sửa giá trị một cách thủ công!"
],
"p6": [
"Ấn vào mũi tên ở dưới để xem thông tin chi tiết lượt cầu nguyện. Sẽ có một popup hiện ra khi bạn nhận được",
"hoặc",
"Bạn cũng có thể thêm hoặc chỉnh sử bảng này thủ công."
]
"p6": "Ấn vào mũi tên ở dưới để xem thông tin chi tiết lượt cầu nguyện. Sẽ có một popup hiện ra khi bạn nhận được 5★ hoặc 4★. Bạn cũng có thể thêm hoặc chỉnh sử bảng này thủ công."
}
},
"types": {

View File

@ -390,11 +390,7 @@
"你也可以按",
"按钮来手动修改数值!"
],
"p6": [
"点击按钮上的箭头来查看你的具体抽卡细节。会自动弹出提示你获得一个",
"或",
"你也可以手动编辑列表."
]
"p6": "点击按钮上的箭头来查看你的具体抽卡细节。会自动弹出提示你获得一个 5★ 或 4★。你也可以手动编辑列表。"
}
},
"types": {

View File

@ -85,14 +85,14 @@
href="https://github.com/MadeBaruna/paimon-moe"
target="_blank"
>
<Icon path={mdiGithub} size={1} /> Github
<Icon path={mdiGithub} size={1} /> {$t('footer.link.github')}
</a>
<a
class="text-gray-400 hover:text-primary whitespace-no-wrap"
href="https://twitter.com/MadeBaruna"
target="_blank"
>
<Icon path={mdiTwitter} size={1} /> Dev Twitter
<Icon path={mdiTwitter} size={1} /> {$t('footer.link.devTwitter')}
</a>
</div>
</div>
@ -104,30 +104,30 @@
href="https://discord.gg/4nbWsCGjjE"
target="_blank"
>
<Icon path={mdiDiscord} size={1} /> Discord
<Icon path={mdiDiscord} size={1} /> {$t('footer.link.discord')}
</a>
<a
class="text-gray-400 hover:text-primary mr-1 whitespace-no-wrap"
href="https://www.facebook.com/Genshinimpact/"
target="_blank"
>
<Icon path={mdiFacebook} size={1} /> Facebook
<Icon path={mdiFacebook} size={1} /> {$t('footer.link.facebook')}
</a>
<a
class="text-gray-400 hover:text-primary whitespace-no-wrap"
href="https://www.reddit.com/r/Genshin_Impact/"
target="_blank"
>
<Icon path={mdiReddit} size={1} /> Reddit
<Icon path={mdiReddit} size={1} /> {$t('footer.link.reddit')}
</a>
</div>
</div>
<div
class="text-gray-400 mt-4 md:mt-0 md:ml-4 flex flex-col justify-center h-full md:pl-4 md:border-l border-gray-600"
>
<a class="text-gray-400 hover:text-primary" href="/privacy-policy">Privacy Policy</a>
<a class="text-gray-400 hover:text-primary" href="/privacy-policy">{$t('footer.link.privacyPolicy')}</a>
<!-- svelte-ignore a11y-invalid-attribute -->
<a class="text-gray-400 hover:text-primary nn-cmp-show" href="#">Cookie Settings</a>
<a class="text-gray-400 hover:text-primary nn-cmp-show" href="#">{$t('footer.link.cookieSettings')}</a>
</div>
</div>
</div>

View File

@ -156,7 +156,10 @@
{$t('furnishing.sets.subtitle')}
</p>
<div class="w-full md:w-64">
<CharacterSelect bind:selected={charFilter} />
<CharacterSelect
bind:selected={charFilter}
placeholder={$t('furnishing.selectCharacter')}
/>
</div>
<div
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-4 gap-2 flex-1 mt-2"

View File

@ -39,21 +39,21 @@
<p>
{$t('privacypolicy.notCollect.0')}
<a target="_blank" class="text-primary hover:underline" href="https://github.com/MadeBaruna/paimon-moe-api">
{$t(`privacypolicy.notCollect.1`)}
{$t('privacypolicy.notCollect.1')}
</a>
{$t('privacypolicy.notCollect.2')}
<a target="_blank" class="text-primary hover:underline" href="https://github.com/MadeBaruna/paimon-moe">
{$t(`privacypolicy.notCollect.3`)}
{$t('privacypolicy.notCollect.3')}
</a>
</p>
<h3 class="text-xl font-bold mt-4">Advertisements</h3>
We use third party advertisements to support our site. Some of these advertisers may be served from our third party advertiser.
You can view their
<a class="text-primary hover:underline" href="https://www.network-n.com/network-privacy-policy/"> privacy policy</a>
and
<a class="text-primary hover:underline" href="https://www.network-n.com/network-cookie-policy/">cookie policy</a>
here. You can manage your cookies
<h3 class="text-xl font-bold mt-4">{$t('privacypolicy.subtitleAd')}</h3>
{$t('privacypolicy.ad.0')}
{$t('privacypolicy.ad.1')}
<a class="text-primary hover:underline" href="https://www.network-n.com/network-privacy-policy/">{$t('privacypolicy.ad.2')}</a>
{$t('privacypolicy.ad.3')}
<a class="text-primary hover:underline" href="https://www.network-n.com/network-cookie-policy/">{$t('privacypolicy.ad.4')}</a>
{$t('privacypolicy.ad.5')}
<!-- svelte-ignore a11y-invalid-attribute -->
<a class="text-primary hover:underline nn-cmp-show" href="#">here</a>
<a class="text-primary hover:underline nn-cmp-show" href="#">{$t('privacypolicy.ad.6')}</a>
</div>
</div>

View File

@ -478,29 +478,29 @@
</Button>
</div>
<div class="bg-item rounded-xl mb-4 p-4 text-white">
<p class="font-semibold">Credits</p>
<p class="font-semibold">{$t('settings.credits.title')}</p>
<table>
<tr>
<td class="pr-1 align-top border-b border-gray-700">Data and images</td>
<td class="pr-1 align-top border-b border-gray-700">{$t('settings.credits.items.0.name')}</td>
<td class="pr-1 align-top border-b border-gray-700">
<a class="text-blue-400 hover:underline" href="https://genshin-impact.fandom.com/" target="_blank">
Genshin Impact Wiki
{$t('settings.credits.items.0.value')}
</a>
</td>
</tr>
<tr>
<td class="pr-1 align-top border-b border-gray-700">Stats data</td>
<td class="pr-1 align-top border-b border-gray-700">{$t('settings.credits.items.1.name')}</td>
<td class="pr-1 align-top border-b border-gray-700">
<a class="text-blue-400 hover:underline" href="https://github.com/Dimbreath/GenshinData" target="_blank">
Dimbreath Genshin Data
{$t('settings.credits.items.1.value')}
</a>
</td>
</tr>
<tr>
<td class="pr-1 align-top">Drop rates for resin calculation</td>
<td class="pr-1 align-top">{$t('settings.credits.items.2.name')}</td>
<td class="pr-1 align-top">
<a class="text-blue-400 hover:underline" href="https://discord.gg/ydwdYmr" target="_blank">
Data Gathering Discord
{$t('settings.credits.items.2.value')}
</a>
</td>
</tr>

View File

@ -493,7 +493,7 @@
<Icon path={mdiArrowLeft} size={1.2} />
</a>
<h2 class="font-display font-bold text-2xl text-gray-400 flex-1">
Wish Counter
{$t('wish.title')}
<span class="text-white">{$t(`wish.types.${id}`)}</span>
</h2>
</div>

View File

@ -67,10 +67,10 @@
</p>
<table class="mt-4">
<tr>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-left">Rarity</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">Total</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">Percent</td>
<td class="text-gray-400 text-sm font-display text-right whitespace-no-wrap">Pity AVG</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-left">{$t('wish.detail.rarity')}</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">{$t('wish.detail.total')}</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">{$t('wish.detail.percent')}</td>
<td class="text-gray-400 text-sm font-display text-right whitespace-no-wrap">{$t('wish.detail.pityAverage')}</td>
</tr>
<tr>
<td class="text-legendary-from font-semibold pr-2 md:pr-4 border-t border-gray-700">
@ -102,7 +102,7 @@
</tr>
<tr>
<td class="text-rare-from font-semibold pl-4 md:pl-4 pr-2 md:pr-4 border-t border-gray-700 whitespace-no-wrap">
Character
{$t('wish.detail.character')}
</td>
<td class="text-rare-from font-semibold pr-2 md:pr-4 text-right border-t border-gray-700">
{numberFormat.format(banner.rare.character.length)}
@ -116,7 +116,7 @@
</tr>
<tr>
<td class="text-rare-from font-semibold pl-4 md:pl-4 pr-2 md:pr-4 border-t border-gray-700 whitespace-no-wrap">
Weapon
{$t('wish.detail.weapon')}
</td>
<td class="text-rare-from font-semibold pr-2 md:pr-4 text-right border-t border-gray-700">
{numberFormat.format(banner.rare.weapon.length)}

View File

@ -65,15 +65,6 @@
{$t('wish.help.howto.p5.1')}
</div>
<div class="text-white p-2 bg-background rounded-xl mt-4">
{$t('wish.help.howto.p6.0')}
<span class="inline-flex items-center"
>5
<Icon path={mdiStar} size={0.7} /></span
>
{$t('wish.help.howto.p6.1')}
<span class="inline-flex items-center"
>4
<Icon path={mdiStar} size={0.7} /></span
>. {$t('wish.help.howto.p6.2')}
{$t('wish.help.howto.p6')}
</div>
</div>

View File

@ -30,9 +30,9 @@
<table>
<tr>
<td class="text-white text-md font-semibold pr-2 md:pr-4 flex-1 w-full">{$t(`wish.types.${type.id}`)}</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">Total</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">Percent</td>
<td class="text-gray-400 text-sm font-display text-right whitespace-no-wrap">Pity AVG</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">{$t('wish.summary.total')}</td>
<td class="text-gray-400 text-sm font-display pr-2 md:pr-4 text-right">{$t('wish.summary.percent')}</td>
<td class="text-gray-400 text-sm font-display text-right whitespace-no-wrap">{$t('wish.summary.pityAverage')}</td>
</tr>
<tr>
<td class="text-legendary-from font-semibold pr-2 md:pr-4 border-t border-gray-700">
@ -77,7 +77,7 @@
</td>
</tr>
<tr>
<td class="text-rare-from font-semibold pl-4 md:pl-4 pr-2 md:pr-4 border-t border-gray-700"> └ Character </td>
<td class="text-rare-from font-semibold pl-4 md:pl-4 pr-2 md:pr-4 border-t border-gray-700"> └ {$t('wish.summary.character')} </td>
<td class="text-rare-from font-semibold pr-2 md:pr-4 text-right border-t border-gray-700">
{numberFormat.format(avg.rare.character.total)}
</td>
@ -89,7 +89,7 @@
</td>
</tr>
<tr>
<td class="text-rare-from font-semibold pl-4 md:pl-4 pr-2 md:pr-4 border-t border-gray-700"> └ Weapon </td>
<td class="text-rare-from font-semibold pl-4 md:pl-4 pr-2 md:pr-4 border-t border-gray-700"> └ {$t('wish.summary.weapon')} </td>
<td class="text-rare-from font-semibold pr-2 md:pr-4 text-right border-t border-gray-700">
{numberFormat.format(avg.rare.weapon.total)}
</td>