Skip to content
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

Users can not tweak time range when the locale is set to Japanese #180554

Open
TomonoriSoejima opened this issue Apr 11, 2024 · 2 comments
Open
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@TomonoriSoejima
Copy link
Contributor

reproducible in 8.12.2

repro step

  1. add i18n.locale: "ja-JP" to kibana.yml and restart Kibana

  2. open a dashboard and choose Absolute (絶対 in Japanese)
    image

  3. Tweak the minute to 03:33:00.000 by hand
    Then you would notice this message "想定されている形式:MMM D, YYYY @ HH:mm:ss.SSS"
    image

想定されている形式 comes from this code

x-pack/plugins/translations/translations/ja-JP.json
563:    "core.euiAbsoluteTab.dateFormatError": "想定されている形式:{dateFormat}",
[ip-192-168-180-197:kibana]$ 

And I believe {dateFormat} should come from Advanced Settings
(This screenshot was taken from another English Kibana for readability.

image

To avoid it, we should handle it like this in the date picker, perhaps?

  • source for test.js
const moment = require('moment');
require('moment/locale/ja');

moment.locale('ja');

let date = moment();
console.log(date.format('MMM D, YYYY @ HH:mm:ss.SSS'));

After doing npm install moment

[ip-192-168-180-197:kibana_jp]$ node test.js 
4月 11, 2024 @ 16:16:56.296
[ip-192-168-180-197:kibana_jp]$ 
@TomonoriSoejima TomonoriSoejima added the bug Fixes for quality problems that affect the customer experience label Apr 11, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Apr 11, 2024
@dmlemeshko dmlemeshko added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Apr 12, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Apr 12, 2024
@dmlemeshko
Copy link
Member

@Bamieh could you have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

3 participants