Add translation key for "No class"

This commit is contained in:
Justin Edmund 2022-12-26 03:39:10 -08:00
parent 45f1bd291e
commit 5d4f3b1091
3 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,7 @@
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
import { useRouter } from 'next/router' import { useRouter } from 'next/router'
import { useSnapshot } from 'valtio' import { useSnapshot } from 'valtio'
import { useTranslation } from 'next-i18next'
import Select from '~components/Select' import Select from '~components/Select'
import SelectItem from '~components/SelectItem' import SelectItem from '~components/SelectItem'
@ -26,6 +27,9 @@ const JobDropdown = React.forwardRef<HTMLSelectElement, Props>(
const router = useRouter() const router = useRouter()
const locale = router.locale || 'en' const locale = router.locale || 'en'
// Set up translation
const { t } = useTranslation('common')
// Create snapshot of app state // Create snapshot of app state
const { party } = useSnapshot(appState) const { party } = useSnapshot(appState)
@ -111,7 +115,7 @@ const JobDropdown = React.forwardRef<HTMLSelectElement, Props>(
triggerClass="Job" triggerClass="Job"
> >
<SelectItem key={-1} value="no-job"> <SelectItem key={-1} value="no-job">
No class {t('no_job')}
</SelectItem> </SelectItem>
{sortedJobs {sortedJobs
? Object.keys(sortedJobs) ? Object.keys(sortedJobs)

View file

@ -295,5 +295,6 @@
"coming_soon": "Coming Soon", "coming_soon": "Coming Soon",
"no_title": "Untitled", "no_title": "Untitled",
"no_raid": "No raid", "no_raid": "No raid",
"no_user": "Anonymous" "no_user": "Anonymous",
"no_job": "No class"
} }

View file

@ -296,5 +296,6 @@
"coming_soon": "開発中", "coming_soon": "開発中",
"no_title": "無題", "no_title": "無題",
"no_raid": "マルチなし", "no_raid": "マルチなし",
"no_user": "無名" "no_user": "無名",
"no_job": "ジョブなし"
} }