Skip to content

Commit

Permalink
Merge pull request #740 from VRK-YTI/fix-translation
Browse files Browse the repository at this point in the history
Fix term family translation
  • Loading branch information
kkyttala authored Oct 9, 2024
2 parents 0f14797 + 4a48ce5 commit f769ba3
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion terminology-ui/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"term-family": {
"feminine": "feminine",
"masculine": "masculine",
"neutral": "neutral"
"neuter": "neuter"
},
"term-style": {
"spoken-form": "spoken form"
Expand Down
2 changes: 1 addition & 1 deletion terminology-ui/public/locales/fi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"term-family": {
"feminine": "feminiini",
"masculine": "maskuliini",
"neutral": "neutri"
"neuter": "neutri"
},
"term-style": {
"spoken-form": "puhekieli"
Expand Down
2 changes: 1 addition & 1 deletion terminology-ui/public/locales/sv/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"term-family": {
"feminine": "femininum",
"masculine": "maskulinum",
"neutral": "neutrum"
"neuter": "neutrum"
},
"term-style": {
"spoken-form": "talspråk"
Expand Down
4 changes: 2 additions & 2 deletions terminology-ui/src/common/utils/translation-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export function translateTermFamily(termFamily: string, t: TFunction) {
switch (termFamily) {
case 'MASCULINE':
return t('term-family.masculine', { ns: 'common' });
case 'NEUTRAL':
return t('term-family.neutral', { ns: 'common' });
case 'NEUTER':
return t('term-family.neuter', { ns: 'common' });
case 'FEMININE':
return t('term-family.feminine', { ns: 'common' });
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ export default function NewTermModal({
uniqueItemId: 'masculine',
},
{
labelText: t('term-family.neutral', { ns: 'common' }),
uniqueItemId: 'neutral',
labelText: t('term-family.neuter', { ns: 'common' }),
uniqueItemId: 'neuter',
},
{
labelText: t('term-family.feminine', { ns: 'common' }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export default function TermForm({
uniqueItemId: 'MASCULINE',
},
{
labelText: t('term-family.neutral', { ns: 'common' }),
uniqueItemId: 'NEUTRAL',
labelText: t('term-family.neuter', { ns: 'common' }),
uniqueItemId: 'NEUTER',
},
{
labelText: t('term-family.feminine', { ns: 'common' }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const input = {
status: 'DRAFT',
termConjugation: 'SINGULAR',
termEquivalency: 'BROADER',
termFamily: 'NEUTRAL',
termFamily: 'NEUTER',
termHomographNumber: '2',
termInfo: 'info',
termStyle: 'term style',
Expand Down Expand Up @@ -147,7 +147,7 @@ const expected = {
historyNote: 'term history',
changeNote: 'term change',
termStyle: 'term style',
termFamily: 'NEUTRAL',
termFamily: 'NEUTER',
termConjugation: 'SINGULAR',
termEquivalency: 'BROADER',
wordClass: 'ADJECTIVE',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const initialDataReturned = generateFormData(
status: 'DRAFT',
termConjugation: 'SINGULAR',
termEquivalency: 'BROADER',
termFamily: 'NEUTRAL',
termFamily: 'NEUTER',
homographNumber: 2,
termInfo: 'info',
termStyle: 'style',
Expand Down Expand Up @@ -156,7 +156,7 @@ export const initialDataExpected = {
status: 'DRAFT',
termConjugation: 'SINGULAR',
termEquivalency: 'BROADER',
termFamily: 'NEUTRAL',
termFamily: 'NEUTER',
termHomographNumber: '2',
termInfo: 'info',
termStyle: 'style',
Expand Down

0 comments on commit f769ba3

Please sign in to comment.