generated from custom-cards/boilerplate-card
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kanji shown wrong in the year #18
Labels
bug
Something isn't working
Comments
This is my test script to fix the output, which I think works (runing with I'll put this into a PR, but it will be untested with HA
|
Good catch! Thanks for that. I'll try testing the PR and merge it this week as soon as I have a moment. |
Seems to work well, thanks! I created a beta release if you want to try it. |
Would definitely like to try the beta release - thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist:
Release with the issue:
Latest
Last working release (if known):
Unknown
Browser and Operating System:
Not browser/OS dependent
Description of problem:
The Kanji is wrong :(
2024 is shown as 二千百十四年 (which is actually 2114)
wherea it should be shown as 二千二十四年
I tried to fix it, however I also can't get it running in a dev environment -
yarn start
doesn't work, and my TS/JS skills aren't good enough at the moment to know how to get things running :( Will keep looking at the issue, and submit a PR if I get htat far.I think the issue is in line 63 of card.ts - there should be an additional
&& prefix < 10
clause, which is what is putting in the extra 百 but I'm not sure at this stage what is not adding the 二 when it should be in thereJavascript errors shown in the web inspector (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: