-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
170 additions
and
25 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
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,9 @@ | ||
let config; | ||
if (typeof CONFIG_PATH === 'undefined' && typeof CONFIG_CLI === 'undefined') { | ||
config = require('../config'); | ||
} | ||
else { | ||
config = Object.assign(require(CONFIG_PATH), CONFIG_CLI); | ||
} | ||
|
||
export default config; |
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,28 @@ | ||
import Vue from 'vue'; | ||
import VueI18n from 'vue-i18n'; | ||
import CONFIG from './config'; | ||
|
||
Vue.use(VueI18n); | ||
|
||
function loadLocaleMessages () { | ||
const messages = {}; | ||
const languages = {}; | ||
for(let locale of CONFIG.supportedLocales) { | ||
languages[locale] = require(`./locales/${locale}/config.json`); | ||
// ToDo: Load not yet required languages async | ||
// https://kazupon.github.io/vue-i18n/guide/lazy-loading.html | ||
messages[locale] = require(`./locales/${locale}/texts.json`); | ||
} | ||
for(let locale in messages) { | ||
messages[locale].languages = languages; | ||
} | ||
return messages; | ||
} | ||
|
||
const i18n = new VueI18n({ | ||
locale: CONFIG.locale, | ||
fallbackLocale: CONFIG.fallbackLocale, | ||
messages: loadLocaleMessages() | ||
}); | ||
|
||
export default i18n; |
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,4 @@ | ||
{ | ||
"native": "Deutsch", | ||
"global": "German" | ||
} |
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,11 @@ | ||
{ | ||
"specifyCatalog": "Bitte gib einen STAC Catalog oder eine STAC API an...", | ||
"selectStacIndex": "... oder wähle einen von STAC Index", | ||
"load": "Laden", | ||
"leaflet": { | ||
"fullscreen": { | ||
"false": "Zeige im Vollbild-Modus", | ||
"true": "Verlasse den Vollbild-Modus" | ||
} | ||
} | ||
} |
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,4 @@ | ||
{ | ||
"native": "English", | ||
"global": "English" | ||
} |
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,11 @@ | ||
{ | ||
"specifyCatalog": "Please specify a STAC Catalog or API...", | ||
"selectStacIndex": "... or select one from STAC Index", | ||
"load": "Load", | ||
"leaflet": { | ||
"fullscreen": { | ||
"false": "View Fullscreen", | ||
"true": "Exit Fullscreen" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import Vue from "vue"; | ||
import StacBrowser from "./StacBrowser.vue"; | ||
import i18n from './i18n'; | ||
|
||
Vue.config.productionTip = false; | ||
|
||
new Vue({ | ||
render: (h) => h(StacBrowser), | ||
i18n, | ||
render: (h) => h(StacBrowser) | ||
}).$mount("#stac-browser"); |
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