Skip to content

Annotations control not localised #723

@kojimaru14

Description

@kojimaru14

Environment:

Desktop:

  • OS: Windows 10
  • Browser: Chrome
  • Version: 133.0.6943.142

Steps to reproduce the problem:
This is the codepen used for showcasing this behaviour: https://codepen.io/kojimaru/pen/oNwrLBW
I tried setting locale to Japanese by passing the following option as the parameter for creating BoxAnnotations class, but that didn't help.

var annotationsOptions = {
  features: {},
  intl: {
    locale: "ja-JP",
  }
}

What is the expected behavior? (Screenshots can be helpful here)
"ja-JP" locale should be supported as per https://github.com/box/box-annotations?tab=readme-ov-file#supported-locales

What went wrong? (Screenshots can be helpful here)
Annotations controls (including tooltip) are not localised and are always displayed in English
https://app.box.com/s/qbpxxzqq9tctdy16zb4qfc46pxki8gg2

Link to application or sample code:
https://codepen.io/kojimaru/pen/oNwrLBW

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions