Skip to content

Commit

Permalink
feat: add Slovak translation (#3346)
Browse files Browse the repository at this point in the history
* feat: add Slovak translation

* fix: format issues

---------

Co-authored-by: Juan P Lopez <[email protected]>
  • Loading branch information
webiumsk and dolcalmi authored Dec 3, 2024
1 parent 4637de8 commit 91141b6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export type Locales =
| 'pt'
| 'qu'
| 'ro'
| 'sk'
| 'sr'
| 'sw'
| 'th'
Expand Down
1 change: 1 addition & 0 deletions app/i18n/i18n-util.async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const localeTranslationLoaders = {
pt: () => import('./pt'),
qu: () => import('./qu'),
ro: () => import('./ro'),
sk: () => import('./sk'),
sr: () => import('./sr'),
sw: () => import('./sw'),
th: () => import('./th'),
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/i18n-util.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import nl from './nl'
import pt from './pt'
import qu from './qu'
import ro from './ro'
import sk from './sk'
import sr from './sr'
import sw from './sw'
import th from './th'
Expand Down Expand Up @@ -54,6 +55,7 @@ const localeTranslations = {
pt,
qu,
ro,
sk,
sr,
sw,
th,
Expand Down
1 change: 1 addition & 0 deletions app/i18n/i18n-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const locales: Locales[] = [
'pt',
'qu',
'ro',
'sk',
'sr',
'sw',
'th',
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import "@formatjs/intl-relativetimeformat/locale-data/ms"
import "@formatjs/intl-relativetimeformat/locale-data/pt"
import "@formatjs/intl-relativetimeformat/locale-data/qu"
import "@formatjs/intl-relativetimeformat/locale-data/ro"
import "@formatjs/intl-relativetimeformat/locale-data/sk"
import "@formatjs/intl-relativetimeformat/locale-data/sr"
import "@formatjs/intl-relativetimeformat/locale-data/sw"
import "@formatjs/intl-relativetimeformat/locale-data/th"
Expand Down Expand Up @@ -53,6 +54,7 @@ export const LocaleToTranslateLanguageSelector = {
pt: "Português",
qu: "Quechua",
ro: "Română",
sk: "Slovensky",
sr: "Српски",
sw: "KiSwahili",
th: "ไทย",
Expand Down
9 changes: 9 additions & 0 deletions app/i18n/sk/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import merge from "lodash.merge"

import en from "../en"
import { Translation } from "../i18n-types"
import rawTranslated from "../raw-i18n/translations/sk.json"

const translated: Translation = merge({}, en as Translation, rawTranslated)

export default translated

0 comments on commit 91141b6

Please sign in to comment.