Skip to content

Commit

Permalink
Added Norwegian translations
Browse files Browse the repository at this point in the history
  • Loading branch information
askogvold committed Jul 11, 2018
1 parent eb9ec84 commit d23bd0b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -24,7 +24,8 @@
```javascript
import 'vue-event-calendar/dist/style.css' //^1.1.10, CSS has been extracted as one file, so you can easily update it.
import vueEventCalendar from 'vue-event-calendar'
Vue.use(vueEventCalendar, {locale: 'en'}) //locale can be 'zh' , 'en' , 'es', 'pt-br', 'ja', 'ko', 'fr', 'it', 'ru', 'de', 'vi', 'ua'
// locale can be 'zh' , 'en' , 'es', 'pt-br', 'ja', 'ko', 'fr', 'it', 'ru', 'de', 'vi', 'ua', 'no, 'no-nn'
Vue.use(vueEventCalendar, {locale: 'en'})
```

#### file.vue
Expand Down
16 changes: 16 additions & 0 deletions src/i18n.js
Expand Up @@ -87,6 +87,22 @@ export default {
dayEventsTitle: 'Alla händelser',
notHaveEvents: 'Inga händelser'
},
no: {
dayNames: ["Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"],
monthNames: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"],
format: 'MM/yyyy',
fullFormat: 'dd/MM/yyyy',
dayEventsTitle: 'Alle hendelser',
notHaveEvents: 'Ingen hendelser'
},
'no-nn': {
dayNames: ["Søn", "Mån", "Tys", "Ons", "Tor", "Fre", "Lau"],
monthNames: ["Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"],
format: 'MM/yyyy',
fullFormat: 'dd/MM/yyyy',
dayEventsTitle: 'Alle hendinger',
notHaveEvents: 'Ingen hendinger'
},
de: {
dayNames: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
monthNames: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
Expand Down

0 comments on commit d23bd0b

Please sign in to comment.