Skip to content

Commit

Permalink
Move language selection from Navbar to Settings (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jan 4, 2019
1 parent e689ddc commit 866f1a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions config/locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
"tabLayout": "Layout",
"tabSources": "Data Sources",
"tabLocalMappings": "Local Mappings",
"language": "Interface Language",
"showAllAncestors": "Always show all ancestors in concept details.",
"truncateNotes": "Do not truncate notes in concept details.",
"showAll": "Always show all mappings and suggestions in mapping browser.",
Expand Down Expand Up @@ -197,6 +198,7 @@
"tabLayout": "Layout",
"tabSources": "Datenquellen",
"tabLocalMappings": "Lokale Mappings",
"language": "Sprache der Oberfläche",
"showAllAncestors": "Immer alle übergeordneten Konzepte anzeigen.",
"truncateNotes": "Notizen für Konzepte nicht abschneiden.",
"showAll": "Immer alle Mappings und Vorschläge anzeigen.",
Expand Down
11 changes: 0 additions & 11 deletions src/components/TheNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@
</b-navbar-brand>
<!-- Links on right side -->
<b-navbar-nav class="ml-auto">
<b-nav-item-dropdown
:text="config.languages[$i18n.locale] || '?'"
right>
<b-dropdown-item
v-for="(label, language) in config.languages"
:key="language"
href="#"
@click="$i18n.locale = language">
{{ label }}
</b-dropdown-item>
</b-nav-item-dropdown>
<!-- Feedback button -->
<b-nav-item
v-if="config.feedbackUrl"
Expand Down
11 changes: 11 additions & 0 deletions src/components/TheSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
<b-tab
:title="$t('settings.tabAccount')"
active>
<p>
<b>{{ $t("settings.language") }}</b>
<b-form-select v-model="$i18n.locale">
<option
v-for="(label, language) in config.languages"
:key="language"
:value="language" >
{{ label }}
</option>
</b-form-select>
</p>
<p v-if="localSettings">
<b>{{ $t("settings.creator") }}</b>
<b-form-input
Expand Down

0 comments on commit 866f1a4

Please sign in to comment.