wip(lab): Migrated translation to next-i18next
This commit is contained in:
parent
538f22a1e6
commit
bbb2b2c23f
25 changed files with 72 additions and 71 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
</>
|
||||
)
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue