SciLifeLab / coronastatus

Open source webapp that let people report their health status to get overview of COVID-19 🇳🇴🇳🇱🇸🇰🇲🇽🇮🇹🇮🇳🇵🇭🇸🇪🇩🇰🇹🇷🇧🇪
MIT License
0 stars 1 forks source link

Swedish translation #5

Closed MalinAhlberg closed 4 years ago

MalinAhlberg commented 4 years ago

Translations of app/locales/en.json, also adds the field Sweden to the english translations.

mihai-sysbio commented 4 years ago

There's a typo in the project, Celcius should be Celsius. Would it be okay to fix in on this branch, or should it be separate?

ewels commented 4 years ago

A mini-PR doesn't hurt, I'm sure that it'll be merged super fast.. If you don't mind doing it :)

talavis commented 4 years ago

I think they have decided that the language code is se instead of sv.

talavis commented 4 years ago

Must add se-word-list.txt. app/domain/urls.ts must have se added; my suggestion:

diff --git a/app/domain/urls.ts b/app/domain/urls.ts
index f8f2218..6934cbd 100644
--- a/app/domain/urls.ts
+++ b/app/domain/urls.ts
@@ -1,6 +1,6 @@
 import { LANGUAGE } from '../../config.json';

-export type Locale = 'no' | 'nl' | 'en' | 'sk' | 'it';
+export type Locale = 'no' | 'nl' | 'en' | 'sk' | 'it' | 'se';

 type Urls = {
   [locale in Locale]: {
@@ -45,6 +45,16 @@ const localeAwareUrls: Urls = {
     api: '/api',
     apiDocs: '/api-docs',
     statistics: '/statistics'
+  },
+    se: {
+    submitReport: '/',
+    profile: '/halsotillstand',
+    privacyPolicy: '/integritetspolicy',
+    map: '/karta',
+    contributors: '/frivilliga',
+    api: '/api',
+    apiDocs: '/api-docs',
+    statistics: '/statistik'
   },
   sk: {
     submitReport: '/',
mihai-sysbio commented 4 years ago

app/domain/urls.ts must have se added

There are discussion regarding switching to sv-se or the like but se is great for now.

talavis commented 4 years ago

The zipcodes etc were added as se, so I got the impression it was already decided.