Uh oh!
There was an error while loading. Please reload this page.
Fix language vs. locale - #14784
Conversation
ChristophWurst
commented
Mar 22, 2019
While it sounds error prone I think this could actually work. I'm wondering if we're the first that have this problem or if there is a known workaround we could follow. |
0734cb5 to
aef375cComparenickvergessen
commented
Mar 28, 2019
I implemented hat solution and it seems to work quite well. |
ChristophWurst
left a comment
There was a problem hiding this comment.
Code looks good and change makes sense otherwise
| ]); | ||
| return moment.localeData()._abbr; | ||
| } | ||
| localeData.parentLocale = getBestParentLocale(); |
There was a problem hiding this comment.
I would just inline this function call
aef375c to
a221011CompareMorrisJobke
commented
Apr 3, 2019
🙈 |
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 17483: failureTESTS=jsunitShow full log |
nickvergessen
commented
Apr 4, 2019
Passes locally. Maybe someone from @nextcloud/javascript can help? |
a221011 to
eda0059Comparenickvergessen
commented
Apr 30, 2019
Rebased, lets see if time fixed it. |
MorrisJobke
commented
May 2, 2019
Conflicts again :/ |
eda0059 to
8cf9e04Comparenickvergessen
commented
May 2, 2019
rebased |
nickvergessen
commented
May 2, 2019
Still failing 🤷♂️ |
Signed-off-by: Joas Schilling <coding@schilljs.com> Fix moment.js usage of language and locale Signed-off-by: Joas Schilling <coding@schilljs.com>
8cf9e04 to
304408aComparewiswedel
commented
Jan 2, 2020
@rullzer This looks kind of stale but keeps getting reported everywhere. Can this please be considered still for 18? |
skjnldsv
commented
Apr 9, 2020
Status? |
nickvergessen
commented
Apr 9, 2020
See first post |
I read it, what about it? |
nickvergessen
commented
Apr 10, 2020
Well i proposed an idea and now we need to say yes or no to this hack |
skjnldsv
commented
Apr 10, 2020
I'm in too! |
rullzer
commented
Mar 30, 2021
I'm going to close this due to lack of activity. |
ghost
commented
Dec 9, 2021
This is still a problem in NC 22.2.0. Is there a chance for progress on this issue? |
I checked, and indeed moment JS does not allow to differenciate between language and locale. My "idea" would be, to get the localeData of OC.getLocale(), then set moment.locale() to OC.getLanguage() and then overwrite weekstart, ispm, format, ... with the localeData of getLocale, or the other way around.
Opinions @ChristophWurst@rullzer@MorrisJobke
fixes#15457