Comments (9)
While you are at it. Could you change Kaos to Storm in the no,json (nb,json) (exceptional = Unwetter = Storm)
from clock-weather-card.
sorry, i don't really understand the question. if you set date_pattern
, the card will use the provided pattern. if not, it will fall back to the default pattern of your language (either locale
, or if not defined the language set in HA)
from clock-weather-card.
When I set the locale for the card to norwegian, I also want the date displayed in norwegian instead of english. I like to have all text in this card in the same language.
Edit: In the previous version, it used the locale set in HA for the date, but this changed with this version and the date is now in the english locale.
from clock-weather-card.
what you describe should work properly. can you please provide the expected and the actual pattern? gonna see if i can reproduce the issue with no
language
from clock-weather-card.
LΓΈr is norwegian for 'Sat' so with this version, there is a mix of two different languages
(I used PPPP as an example here. My normal formatting code would be PPP)
from clock-weather-card.
i see. my hunch is that the underlying date-fns library does not yet have norwegian language support. gonna have look.
from clock-weather-card.
The proper locale code for norwegian is nb and not no. The date is in norwegian if I use nb as locale, but then, everything else is in english
https://www.localeplanet.com/icu/nb-NO/index.html
from clock-weather-card.
nice catch. what do you think about changing supporte locale in the card from no
to nb
?
from clock-weather-card.
Changing it to nb is the right thing to do, imo. It is a minor change which will solve this little issue.
from clock-weather-card.
Related Issues (20)
- Temperature from Sensors not viewed HOT 5
- Day name displayed twice if `PPPP` is used as `date_pattern` HOT 1
- Missing weekdays in da translation HOT 1
- Missing the indicator point on the bar for actual temp HOT 1
- Not show or empty HOT 1
- First date is not tomorrow but today HOT 1
- Error after updating HA 2023.4 HOT 2
- showing location HOT 3
- Forecasted Conditions are a day fast HOT 5
- Forecast weather icons not showing on some devices HOT 6
- Allow a sensor for the date/time
- Card Size
- Use of custom weather icon
- Add the ability to use line icons for the forecast
- Add "strong winds" icon HOT 1
- Locale sv-SE chosen but still no Swedish translation HOT 2
- Please add support for Estonian language HOT 2
- Card is blank using AccuWeather as my weather source.
- Text alignment
- Make day of the week part of the date pattern HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clock-weather-card.