Skip to content

Commit

Permalink
📝 updated README.md translation part
Browse files Browse the repository at this point in the history
  • Loading branch information
ohheyitsdave committed Nov 27, 2020
1 parent 824f051 commit 57af763
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,14 @@ function initI18n(lng = 'en') {
3. Add language to the navbar
To add the language in the navbar go to `src/components/LanguageSwitcher.svelte`. Scroll down to around Line 140 and add this line with the corresponding language.
```
<a href="{`fr/${pathWithoutLang}`}" class="uppercase block md:pr-4"
class:selected="{lang === 'fr' ? 'selected' : ''}">{flag('fr')}</a>
To add the language in the navbar go to `src/components/LanguageSwitcher.svelte`. Scroll down to around Line 24 and add this line with the corresponding language.
```javascript
const langauges = [
"gb", "de", "fr", "it", "sk", "ru" // <- add new lanuage in the array
]
```
#
## Bugs and feedback
The website is in early development, and may have the rough edge here and there.
Expand Down

0 comments on commit 57af763

Please sign in to comment.