Add translations

This commit is contained in:
Justin Edmund 2023-01-20 20:46:54 -08:00
parent 54d67260c9
commit 3417eab46e
4 changed files with 20 additions and 4 deletions

View file

@ -179,10 +179,10 @@ const CharacterUnit = ({
</ContextMenuTrigger>
<ContextMenuContent align="start">
<ContextMenuItem onSelect={openCharacterModal}>
Modify character
{t('context.modify.character')}
</ContextMenuItem>
<ContextMenuItem onSelect={openRemoveCharacterAlert}>
Remove from grid
{t('context.remove')}
</ContextMenuItem>
</ContextMenuContent>
</ContextMenu>

View file

@ -458,13 +458,13 @@ const WeaponUnit = ({
<ContextMenuContent align="start">
{canBeModified(gridWeapon) ? (
<ContextMenuItem onSelect={openWeaponModal}>
Modify weapon
{t('context.modify.weapon')}
</ContextMenuItem>
) : (
''
)}
<ContextMenuItem onSelect={openRemoveWeaponAlert}>
Remove from grid
{t('context.remove')}
</ContextMenuItem>
</ContextMenuContent>
</ContextMenu>

View file

@ -32,6 +32,14 @@
"new": "New",
"wiki": "View more on gbf.wiki"
},
"context": {
"modify": {
"character": "Modify character",
"summon": "Modify summon",
"weapon": "Modify weapon"
},
"remove": "Remove from grid"
},
"filters": {
"labels": {
"element": "Element",

View file

@ -32,6 +32,14 @@
"new": "作成",
"wiki": "gbf.wikiで詳しく見る"
},
"context": {
"modify": {
"character": "キャラクターを変更",
"summon": "召喚石を変更",
"weapon": "武器を変更"
},
"remove": "編成から削除"
},
"filters": {
"labels": {
"element": "属性",