mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 06:40:54 +03:00
UI: add missing French and German localization for calendars
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
70
static/assets/plugins/custom/flatpickr/l10n/de.js
Normal file
70
static/assets/plugins/custom/flatpickr/l10n/de.js
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||||
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.de = {}));
|
||||||
|
}(this, (function (exports) { 'use strict';
|
||||||
|
|
||||||
|
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
|
||||||
|
? window.flatpickr
|
||||||
|
: {
|
||||||
|
l10ns: {},
|
||||||
|
};
|
||||||
|
var German = {
|
||||||
|
weekdays: {
|
||||||
|
shorthand: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
||||||
|
longhand: [
|
||||||
|
"Sonntag",
|
||||||
|
"Montag",
|
||||||
|
"Dienstag",
|
||||||
|
"Mittwoch",
|
||||||
|
"Donnerstag",
|
||||||
|
"Freitag",
|
||||||
|
"Samstag",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
shorthand: [
|
||||||
|
"Jan",
|
||||||
|
"Feb",
|
||||||
|
"Mär",
|
||||||
|
"Apr",
|
||||||
|
"Mai",
|
||||||
|
"Jun",
|
||||||
|
"Jul",
|
||||||
|
"Aug",
|
||||||
|
"Sep",
|
||||||
|
"Okt",
|
||||||
|
"Nov",
|
||||||
|
"Dez",
|
||||||
|
],
|
||||||
|
longhand: [
|
||||||
|
"Januar",
|
||||||
|
"Februar",
|
||||||
|
"März",
|
||||||
|
"April",
|
||||||
|
"Mai",
|
||||||
|
"Juni",
|
||||||
|
"Juli",
|
||||||
|
"August",
|
||||||
|
"September",
|
||||||
|
"Oktober",
|
||||||
|
"November",
|
||||||
|
"Dezember",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
firstDayOfWeek: 1,
|
||||||
|
weekAbbreviation: "KW",
|
||||||
|
rangeSeparator: " bis ",
|
||||||
|
scrollTitle: "Zum Ändern scrollen",
|
||||||
|
toggleTitle: "Zum Umschalten klicken",
|
||||||
|
time_24hr: true,
|
||||||
|
};
|
||||||
|
fp.l10ns.de = German;
|
||||||
|
var de = fp.l10ns;
|
||||||
|
|
||||||
|
exports.German = German;
|
||||||
|
exports.default = de;
|
||||||
|
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
|
})));
|
||||||
75
static/assets/plugins/custom/flatpickr/l10n/fr.js
Normal file
75
static/assets/plugins/custom/flatpickr/l10n/fr.js
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||||
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fr = {}));
|
||||||
|
}(this, (function (exports) { 'use strict';
|
||||||
|
|
||||||
|
var fp = typeof window !== "undefined" && window.flatpickr !== undefined
|
||||||
|
? window.flatpickr
|
||||||
|
: {
|
||||||
|
l10ns: {},
|
||||||
|
};
|
||||||
|
var French = {
|
||||||
|
firstDayOfWeek: 1,
|
||||||
|
weekdays: {
|
||||||
|
shorthand: ["dim", "lun", "mar", "mer", "jeu", "ven", "sam"],
|
||||||
|
longhand: [
|
||||||
|
"dimanche",
|
||||||
|
"lundi",
|
||||||
|
"mardi",
|
||||||
|
"mercredi",
|
||||||
|
"jeudi",
|
||||||
|
"vendredi",
|
||||||
|
"samedi",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
months: {
|
||||||
|
shorthand: [
|
||||||
|
"janv",
|
||||||
|
"févr",
|
||||||
|
"mars",
|
||||||
|
"avr",
|
||||||
|
"mai",
|
||||||
|
"juin",
|
||||||
|
"juil",
|
||||||
|
"août",
|
||||||
|
"sept",
|
||||||
|
"oct",
|
||||||
|
"nov",
|
||||||
|
"déc",
|
||||||
|
],
|
||||||
|
longhand: [
|
||||||
|
"janvier",
|
||||||
|
"février",
|
||||||
|
"mars",
|
||||||
|
"avril",
|
||||||
|
"mai",
|
||||||
|
"juin",
|
||||||
|
"juillet",
|
||||||
|
"août",
|
||||||
|
"septembre",
|
||||||
|
"octobre",
|
||||||
|
"novembre",
|
||||||
|
"décembre",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
ordinal: function (nth) {
|
||||||
|
if (nth > 1)
|
||||||
|
return "";
|
||||||
|
return "er";
|
||||||
|
},
|
||||||
|
rangeSeparator: " au ",
|
||||||
|
weekAbbreviation: "Sem",
|
||||||
|
scrollTitle: "Défiler pour augmenter la valeur",
|
||||||
|
toggleTitle: "Cliquer pour basculer",
|
||||||
|
time_24hr: true,
|
||||||
|
};
|
||||||
|
fp.l10ns.fr = French;
|
||||||
|
var fr = fp.l10ns;
|
||||||
|
|
||||||
|
exports.French = French;
|
||||||
|
exports.default = fr;
|
||||||
|
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
|
})));
|
||||||
@@ -152,6 +152,8 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
{{- define "extra_js"}}
|
{{- define "extra_js"}}
|
||||||
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/datatables/datatables.bundle.js"></script>
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/datatables/datatables.bundle.js"></script>
|
||||||
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/it.js"></script>
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/it.js"></script>
|
||||||
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/de.js"></script>
|
||||||
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/fr.js"></script>
|
||||||
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/vendor/humanize-duration/humanize-duration.min.js"></script>
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/vendor/humanize-duration/humanize-duration.min.js"></script>
|
||||||
<script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
|
<script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
|
||||||
const pageSize = 20;
|
const pageSize = 20;
|
||||||
|
|||||||
@@ -820,6 +820,8 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
{{- define "extra_js"}}
|
{{- define "extra_js"}}
|
||||||
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/formrepeater/formrepeater.bundle.js"></script>
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/formrepeater/formrepeater.bundle.js"></script>
|
||||||
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/it.js"></script>
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/it.js"></script>
|
||||||
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/de.js"></script>
|
||||||
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/fr.js"></script>
|
||||||
<script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
|
<script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
|
||||||
|
|
||||||
$(document).on("i18nload", function(){
|
$(document).on("i18nload", function(){
|
||||||
|
|||||||
@@ -182,6 +182,8 @@ explicit grant from the SFTPGo Team (support@sftpgo.com).
|
|||||||
{{- define "extra_js"}}
|
{{- define "extra_js"}}
|
||||||
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/formrepeater/formrepeater.bundle.js"></script>
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/formrepeater/formrepeater.bundle.js"></script>
|
||||||
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/it.js"></script>
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/it.js"></script>
|
||||||
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/de.js"></script>
|
||||||
|
<script {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}} src="{{.StaticURL}}/assets/plugins/custom/flatpickr/l10n/fr.js"></script>
|
||||||
<script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
|
<script type="text/javascript" {{- if .CSPNonce}} nonce="{{.CSPNonce}}"{{- end}}>
|
||||||
$(document).on("i18nshow", function(){
|
$(document).on("i18nshow", function(){
|
||||||
initRepeater('#paths');
|
initRepeater('#paths');
|
||||||
|
|||||||
Reference in New Issue
Block a user