This repository has been archived by the owner on May 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #381 from alexander-heimbuch/feature/l10n
feat(l10n): Add Internationalization
- Loading branch information
Showing
31 changed files
with
298 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ | |
.subtitle { | ||
overflow: hidden; | ||
height: 1.5 * 2em; | ||
height: 1.5 * 2em; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import Vue from 'vue' | ||
import VueI18n from 'vue-i18n' | ||
|
||
import clipboard from './directives/clipboard' | ||
import marquee from './directives/marquee' | ||
import languagePacks from 'lang' | ||
|
||
const createRenderer = instance => { | ||
instance.directive('clipboard', clipboard) | ||
instance.directive('marquee', marquee) | ||
return instance | ||
} | ||
|
||
const Renderer = createRenderer(Vue) | ||
|
||
export { | ||
Renderer | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"CHAPTERS": { | ||
"TITLE": "Kapitel" | ||
}, | ||
"SHARE": { | ||
"TITLE": "Teilen", | ||
"LINK": "Link", | ||
"EMBED": "Einbetten", | ||
"START": "Start:", | ||
"SIZE": "Größe:", | ||
"COPY": "kopieren" | ||
}, | ||
"SETTINGS": { | ||
"TITLE": "Einstellung", | ||
"VOLUME": "Lautstärke", | ||
"SPEED": "Geschwindigkeit", | ||
"DEBUG_STATE": "Debug State exportieren" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"CHAPTERS": { | ||
"TITLE": "Chapters" | ||
}, | ||
"SHARE": { | ||
"TITLE": "Share", | ||
"LINK": "Link", | ||
"EMBED": "Embed", | ||
"START": "Start:", | ||
"SIZE": "Size:", | ||
"COPY": "copy" | ||
}, | ||
"SETTINGS": { | ||
"TITLE": "Settings", | ||
"VOLUME": "Volume", | ||
"SPEED": "Speed", | ||
"DEBUG_STATE": "Export Debug State" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import Vue from 'vue' | ||
import VueI18n from 'vue-i18n' | ||
|
||
const messages = { | ||
en: require('./en.json'), | ||
de: require('./de.json') | ||
} | ||
|
||
Vue.use(VueI18n) | ||
|
||
export default new VueI18n({ | ||
locale: 'en', | ||
fallbackLocale: 'en', | ||
messages | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const setLanguage = lang => ({ | ||
type: 'SET_LANGUAGE', | ||
payload: lang | ||
}) | ||
|
||
export { | ||
setLanguage | ||
} |
Oops, something went wrong.