Add localization

This commit is contained in:
Justin Edmund 2023-08-23 02:48:44 -07:00
parent e7d76879d2
commit cb778e1320
4 changed files with 15 additions and 3 deletions

View file

@ -93,6 +93,7 @@
.viewSwitcher { .viewSwitcher {
align-items: center; align-items: center;
display: flex; display: flex;
gap: $unit-fourth;
span { span {
color: var(--text-tertiary); color: var(--text-tertiary);
@ -113,6 +114,7 @@
} }
&.active { &.active {
background: var(--button-contained-bg);
font-weight: $bold; font-weight: $bold;
} }
} }

View file

@ -459,12 +459,12 @@ const SearchModal = (props: Props) => {
</h5> </h5>
{(props.object === 'weapons' || props.object === 'summons') && ( {(props.object === 'weapons' || props.object === 'summons') && (
<div className={styles.viewSwitcher}> <div className={styles.viewSwitcher}>
<span>View: </span> <span>{t('search.labels.view')}</span>
<button className={newestViewClasses} onClick={showNewest}> <button className={newestViewClasses} onClick={showNewest}>
Newest {t('search.labels.newest')}
</button> </button>
<button className={recentViewClasses} onClick={showRecent}> <button className={recentViewClasses} onClick={showRecent}>
Recently used {t('search.labels.recently_used')}
</button> </button>
</div> </div>
)} )}

View file

@ -512,6 +512,11 @@
"end_results": "No more results", "end_results": "No more results",
"type": "Keep typing..." "type": "Keep typing..."
}, },
"labels": {
"view": "View:",
"newest": "Newly added",
"recently_used": "Recently used"
},
"placeholders": { "placeholders": {
"weapon": "Search for a weapon...", "weapon": "Search for a weapon...",
"summon": "Search for a summon...", "summon": "Search for a summon...",

View file

@ -510,6 +510,11 @@
"end_results": "検索結果これ以上ありません", "end_results": "検索結果これ以上ありません",
"type": "もっと入力してください" "type": "もっと入力してください"
}, },
"labels": {
"view": "表示:",
"newest": "最新発表",
"recently_used": "最近使用"
},
"placeholders": { "placeholders": {
"weapon": "武器を検索...", "weapon": "武器を検索...",
"summon": "召喚石を検索...", "summon": "召喚石を検索...",