Add localization
This commit is contained in:
parent
e7d76879d2
commit
cb778e1320
4 changed files with 15 additions and 3 deletions
|
|
@ -93,6 +93,7 @@
|
|||
.viewSwitcher {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
gap: $unit-fourth;
|
||||
|
||||
span {
|
||||
color: var(--text-tertiary);
|
||||
|
|
@ -113,6 +114,7 @@
|
|||
}
|
||||
|
||||
&.active {
|
||||
background: var(--button-contained-bg);
|
||||
font-weight: $bold;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -459,12 +459,12 @@ const SearchModal = (props: Props) => {
|
|||
</h5>
|
||||
{(props.object === 'weapons' || props.object === 'summons') && (
|
||||
<div className={styles.viewSwitcher}>
|
||||
<span>View: </span>
|
||||
<span>{t('search.labels.view')}</span>
|
||||
<button className={newestViewClasses} onClick={showNewest}>
|
||||
Newest
|
||||
{t('search.labels.newest')}
|
||||
</button>
|
||||
<button className={recentViewClasses} onClick={showRecent}>
|
||||
Recently used
|
||||
{t('search.labels.recently_used')}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -512,6 +512,11 @@
|
|||
"end_results": "No more results",
|
||||
"type": "Keep typing..."
|
||||
},
|
||||
"labels": {
|
||||
"view": "View:",
|
||||
"newest": "Newly added",
|
||||
"recently_used": "Recently used"
|
||||
},
|
||||
"placeholders": {
|
||||
"weapon": "Search for a weapon...",
|
||||
"summon": "Search for a summon...",
|
||||
|
|
|
|||
|
|
@ -510,6 +510,11 @@
|
|||
"end_results": "検索結果これ以上ありません",
|
||||
"type": "もっと入力してください"
|
||||
},
|
||||
"labels": {
|
||||
"view": "表示:",
|
||||
"newest": "最新発表",
|
||||
"recently_used": "最近使用"
|
||||
},
|
||||
"placeholders": {
|
||||
"weapon": "武器を検索...",
|
||||
"summon": "召喚石を検索...",
|
||||
|
|
|
|||
Loading…
Reference in a new issue