diff --git a/components/JobDropdown/index.tsx b/components/JobDropdown/index.tsx index bfd2f707..bc863821 100644 --- a/components/JobDropdown/index.tsx +++ b/components/JobDropdown/index.tsx @@ -1,6 +1,7 @@ import React, { useEffect, useState } from 'react' import { useRouter } from 'next/router' import { useSnapshot } from 'valtio' +import { useTranslation } from 'next-i18next' import Select from '~components/Select' import SelectItem from '~components/SelectItem' @@ -26,6 +27,9 @@ const JobDropdown = React.forwardRef( const router = useRouter() const locale = router.locale || 'en' + // Set up translation + const { t } = useTranslation('common') + // Create snapshot of app state const { party } = useSnapshot(appState) @@ -111,7 +115,7 @@ const JobDropdown = React.forwardRef( triggerClass="Job" > - No class + {t('no_job')} {sortedJobs ? Object.keys(sortedJobs) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 4c33cec2..08b6cf85 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -295,5 +295,6 @@ "coming_soon": "Coming Soon", "no_title": "Untitled", "no_raid": "No raid", - "no_user": "Anonymous" + "no_user": "Anonymous", + "no_job": "No class" } diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index 160f156e..5c87b919 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -296,5 +296,6 @@ "coming_soon": "開発中", "no_title": "無題", "no_raid": "マルチなし", - "no_user": "無名" + "no_user": "無名", + "no_job": "ジョブなし" }