mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
Add German weekday abbreviations
On systems with German locales the weekdays abbreviation differs from the English format.
This commit is contained in:
@@ -193,6 +193,7 @@ class OrgViewer extends React.Component {
|
||||
|
||||
function day(n){
|
||||
switch(navigator.language.split("-")[0]){
|
||||
case "de": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"][n];
|
||||
default: return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"][n];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user