Skip to content

Commit

Permalink
Add note that translations may be incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Apr 5, 2024
1 parent 1de9134 commit cc43548
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/src/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@
"title": "Benutzereinstellungen",
"introduction": "Diese Einstellungen werden als Cookies auf Ihrem Computer gespeichert und werden unabhängig von der geöffneten Karte angewendet.",
"language": "Sprache",
"language-description": "Manche Übersetzungen sind möglicherweise noch unvollständig. Die Übersetzungen werden gemeinschaftlich erstellt, Sie können sich gerne auf {{weblate}} daran beteiligen.",
"language-description-interpolation-weblate": "Weblate",
"units": "Einheiten",
"units-metric": "Metrisch",
"units-us": "US customary (Meilen und Füße)"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@
"title": "User preferences",
"introduction": "These settings are stored on your computer as a cookie and are applied independently of the opened map.",
"language": "Language",
"language-description": "Some translations may not be complete yet. Translations are created by the community, feel free to contribute on {{weblate}}.",
"language-description-interpolation-weblate": "Weblate",
"units": "Units",
"units-metric": "Metric",
"units-us": "US customary (miles, feet)"
Expand Down
11 changes: 10 additions & 1 deletion frontend/src/lib/components/user-preferences-dialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { Units } from "facilmap-types";
import ModalDialog from "./ui/modal-dialog.vue";
import { computed, reactive, ref, toRef } from "vue";
import { useI18n } from "../utils/i18n";
import { T, useI18n } from "../utils/i18n";
import { getUniqueId } from "../utils/utils";
import { setLangCookie, setUnitsCookie } from "../utils/cookies";
import { isEqual } from "lodash-es";
Expand Down Expand Up @@ -65,6 +65,15 @@
<select :id="`${id}-language-input`" class="form-select" v-model="values.lang">
<option v-for="(label, key) in LANGUAGES" :key="key" :value="key">{{label}}</option>
</select>
<div class="form-text">
<T k="user-preferences-dialog.language-description">
<template #weblate>
<a href="https://hosted.weblate.org/projects/facilmap/" target="_blank" rel="noopener">
{{i18n.t("user-preferences-dialog.language-description-interpolation-weblate")}}
</a>
</template>
</T>
</div>
</div>
</div>

Expand Down

0 comments on commit cc43548

Please sign in to comment.