forked from spacedeck/spacedeck-open
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add translation library and translations
- Loading branch information
1 parent
1350f7c
commit 4978da9
Showing
13 changed files
with
147 additions
and
31 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,6 @@ | ||
<template> | ||
<div class="avw-board-error"> | ||
<div class="avw-board-error__info"> | ||
This board has been deleted or your access has expired. <br /> | ||
Please try relaunching from the alfaview client. | ||
</div> | ||
<!-- eslint-disable-next-line vue/no-parsing-error --> | ||
<div class="avw-board-error__info">{{{ $t("errors.notFound") }}}</div> | ||
</div> | ||
</template> |
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,26 @@ | ||
export default { | ||
toolbar: { | ||
select: "Select", | ||
draw: "Zeichnen", | ||
shape: "Grafik", | ||
arrow: "Pfeil", | ||
text: "Text", | ||
background: "Hintergrund", | ||
download: "Herunterladen", | ||
clear: "Alle löschen", | ||
align: "Ausrichtung", | ||
layout: "Layout", | ||
duplicate: "Duplizieren", | ||
delete: "Löschen", | ||
stroke: "Strich", | ||
fontSize: "Schriftgröße", | ||
borderRadius: "Border radius", | ||
}, | ||
boardMetadata: { | ||
deletionMessage: "Board wird automatisch gelöscht am: {date}", | ||
}, | ||
errors: { | ||
notFound: | ||
"Dieses Board wurde gelöscht oder Ihr Zugang ist abgelaufen.<br />Bitte versuchen Sie, das Board über den alfaview-client neu zu starten.", | ||
}, | ||
}; |
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,26 @@ | ||
export default { | ||
toolbar: { | ||
select: "Select", | ||
draw: "Draw", | ||
shape: "Shape", | ||
arrow: "Arrow", | ||
text: "Text", | ||
background: "Background", | ||
download: "Download", | ||
clear: "Clear", | ||
align: "Align", | ||
layout: "Layout", | ||
duplicate: "Duplicate", | ||
delete: "Delete", | ||
stroke: "Stroke", | ||
fontSize: "Font size", | ||
borderRadius: "Border radius", | ||
}, | ||
boardMetadata: { | ||
deletionMessage: "Board will be automatically deleted on: {date}", | ||
}, | ||
errors: { | ||
notFound: | ||
"This board has been deleted or your access has expired.<br />Please try relaunching from the alfaview client.", | ||
}, | ||
}; |
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,14 @@ | ||
const browserDetectedLang = () => { | ||
return navigator.languages && navigator.languages.length | ||
? navigator.languages[0] | ||
: navigator.language; | ||
}; | ||
|
||
// initialize to German locale if it's any of the variations, otherwise fall back to English | ||
export const getBrowserLocale = () => { | ||
return ["de", "de-DE", "de-CH", "de-AT", "de-LU", "de-LI"].indexOf( | ||
browserDetectedLang() | ||
) > -1 | ||
? "de" | ||
: "en"; | ||
}; |