Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
Add slovak/SK language support (#231)
Browse files Browse the repository at this point in the history
* Add support for SK URL routes

* Add SK language translations

* Fix typos & indentation

* Claim SK locales CODE ownership

* Add sk/coronastatus.svg

* Add SK wordlist

* Sort words & remove duplicates

Co-authored-by: Stano Bocinec <[email protected]>
  • Loading branch information
Stano Bo and sbocinec authored Mar 23, 2020
1 parent 21ca36f commit 4ce4f17
Show file tree
Hide file tree
Showing 5 changed files with 2,287 additions and 1 deletion.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/static/nl/ @Kilian
/app/locales/ @Kilian
/app/locales/no.json @michaelmcmillan
/app/locales/sk*.json @sbocinec
*.md @michaelmcmillan
/app/repository/ @Snikanes
/app/views/ @fossecode
12 changes: 11 additions & 1 deletion app/domain/urls.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LANGUAGE } from '../../config.json';

export type Locale = 'no' | 'nl' | 'en';
export type Locale = 'no' | 'nl' | 'en' | 'sk';

type Urls = {
[locale in Locale]: {
Expand Down Expand Up @@ -45,6 +45,16 @@ const localeAwareUrls: Urls = {
api: '/api',
apiDocs: '/api-docs',
statistics: '/statistics'
},
sk: {
submitReport: '/',
profile: '/zdravotny-stav',
privacyPolicy: '/ochrana-udajov',
map: '/mapa',
contributors: '/prispievatelia',
api: '/api',
apiDocs: '/api-docs',
statistics: '/statistiky'
}
};

Expand Down
Loading

0 comments on commit 4ce4f17

Please sign in to comment.