1
0
Fork 0

wip(lab): Migrated translation to next-i18next

This commit is contained in:
Joost De Cock 2022-02-10 21:40:19 +01:00
parent 538f22a1e6
commit bbb2b2c23f
25 changed files with 72 additions and 71 deletions

View file

@ -10,7 +10,7 @@ const DisableXray = props => {
<SumDiv>
<Deg />
<span>
{t('cfp:thingIsEnabled', { thing: t('settings:xray.title') })}
{t('cfp:thingIsEnabled', { thing: t('settings:xray.t') })}
</span>
</SumDiv>
</SumButton>

View file

@ -16,7 +16,7 @@ const Xray = props => {
? (
<>
<span className={`grow ${linkClasses} hover:cursor-resize font-bold uppercase`}>
{t('settings:xray.title')}
{t('settings:xray.t')}
</span>
<Chevron />
</>
@ -26,10 +26,10 @@ const Xray = props => {
className={`grow ${linkClasses} hover:cursor-resize uppercase font-bold text-left`}
onClick={() => props.updateGist(['xray', 'enabled'], true)}
>
{t('settings:xray.title')}
{t('settings:xray.t')}
</button>
<span className="text-normal text-secondary">
{t('cfp:thingIsDisabled', { thing: t('settings:xray.title') })}
{t('cfp:thingIsDisabled', { thing: t('settings:xray.t') })}
</span>
</>
)

View file

@ -15,7 +15,7 @@ const types = {
const XrayList = props => {
const { t } = useTranslation(['app', 'parts'])
let title = t(`parts.${props.partName}`)
let title = t(`parts:${props.partName}`)
if (title !== props.partName || true) title + ` (${props.partName})`
const part = props.gist.xray.parts[props.partName]