Skip to content

Commit

Permalink
Fix serbian translation
Browse files Browse the repository at this point in the history
  • Loading branch information
buresmi7 committed Nov 30, 2023
1 parent 2c3b61e commit 7be1f10
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/emails/src/factories/createWatcherLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const langCodeMapToGolLangCode = {
[SupportedLanguageEnum.al]: 'al',
[SupportedLanguageEnum.sk]: 'sk',
[SupportedLanguageEnum.vi]: 'vi',
[SupportedLanguageEnum.rs]: 'rs',
[SupportedLanguageEnum.sr]: 'sr',
}

export const createResultUrl = (
Expand Down
2 changes: 1 addition & 1 deletion app/shared/src/translation/SupportedLanguageEnum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export enum SupportedLanguageEnum {
en = 'en',
sk = 'sk',
vi = 'vi',
rs = 'rs',
sr = 'sr',
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TranslationKeys } from '@shared/translation/TranslationKeys'

// tslint:disable:max-line-length
export const rsTranslation: TranslationKeys = {
export const srTranslation: TranslationKeys = {
FormatDate: `D MMM YYYY`,
FormatDateDayMonth: `D MMM`,
FormatDateWithDayName: `ddd D MMM YYYY`,
Expand Down
4 changes: 2 additions & 2 deletions app/shared/src/translation/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { enTranslation } from '@shared/translation/enTranslation'
import { skTranslation } from '@shared/translation/skTranslation'
import { SupportedLanguageEnum } from '@shared/translation/SupportedLanguageEnum'
import { viTranslation } from '@shared/translation/viTranslation'
import { rsTranslation } from '@shared/translation/rsTranslation'
import { srTranslation } from '@shared/translation/srTranslation'

export const translations = {
[SupportedLanguageEnum.al]: alTranslation,
[SupportedLanguageEnum.cs]: csTranslation,
[SupportedLanguageEnum.en]: enTranslation,
[SupportedLanguageEnum.sk]: skTranslation,
[SupportedLanguageEnum.vi]: viTranslation,
[SupportedLanguageEnum.rs]: rsTranslation,
[SupportedLanguageEnum.sr]: srTranslation,
}
4 changes: 2 additions & 2 deletions app/translationScripts/importTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const csFilePath = 'app/shared/src/translation/csTranslation.ts'
const enFilePath = 'app/shared/src/translation/enTranslation.ts'
const skFilePath = 'app/shared/src/translation/skTranslation.ts'
const viFilePath = 'app/shared/src/translation/viTranslation.ts'
const rsFilePath = 'app/shared/src/translation/rsTranslation.ts'
const srFilePath = 'app/shared/src/translation/srTranslation.ts'

const translationFilePaths = {
al: alFilePath,
cs: csFilePath,
en: enFilePath,
sk: skFilePath,
vi: viFilePath,
rs: rsFilePath,
sr: srFilePath,
}

translateImport(fileName, translationFilePaths)

0 comments on commit 7be1f10

Please sign in to comment.