... | ... | @@ -6,7 +6,7 @@ There's also the humongous forecast file at `src/locales/en/archive/current.json |
|
|
|
|
|
The first time, you're adding a new translation, you'll also have to update Gruntfile.js to build the new distribution files:
|
|
|
|
|
|
1. [line 332](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L332):
|
|
|
1. [line 385](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L385):
|
|
|
```
|
|
|
locales: ['de','en','no'],
|
|
|
```
|
... | ... | @@ -15,7 +15,7 @@ add your language code. e.g: |
|
|
locales: ['de','en','no','fr'],
|
|
|
```
|
|
|
|
|
|
2. [line 59-66](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L59):
|
|
|
2. [line 61-68](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L61):
|
|
|
Copy the lines right below and replace occurences of `.en.` and `/en/` with your language code. e.g: `.fr.` and `/fr/`:
|
|
|
```
|
|
|
'src/index.fr.min.html.tmpl': 'src/i18n/fr/index.html.tmpl',
|
... | ... | @@ -28,7 +28,7 @@ Copy the lines right below and replace occurences of `.en.` and `/en/` with your |
|
|
'src/fullscreen2.fr.min.html.tmpl': 'src/i18n/fr/fullscreen2.html.tmpl'
|
|
|
```
|
|
|
|
|
|
3. [line 100-129](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L100):
|
|
|
3. [line 111-140](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L111):
|
|
|
Copy the lines right below and replace occurences of `.en.` and `/en/` with your language code. e.g: `.fr.` and `/fr/`:
|
|
|
```
|
|
|
{
|
... | ... | @@ -63,7 +63,7 @@ Copy the lines right below and replace occurences of `.en.` and `/en/` with your |
|
|
},
|
|
|
```
|
|
|
|
|
|
4. [line 238-248](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L238):
|
|
|
4. [line 265-277](https://gitlab.ambhost.net/stimpy/template_rabenwetter/blob/master/Gruntfile.js#L265):
|
|
|
Copy the lines right below and replace occurences of `.en.` and `/en/` with your language code. e.g: `.fr.` and `/fr/`:
|
|
|
```
|
|
|
{src: 'src/index.fr.min.html.tmpl', dest: 'dist/i18n/fr/index.html.tmpl'},
|
... | ... | |