box / box/box-annotations

Annotations control not localised

Open
#723 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12
Forks
53
Avg merge
18h 53m
Merged PRs (30d)
10

Description

**Environment:**
- Preview and/or Annotations version:
- [Content Preview UI Element](https://github.com/box/box-content-preview): v22.2 (loaded from https://cdn01.boxcdn.net/platform/elements/22.0.0/ja-JP/preview.css and https://cdn01.boxcdn.net/platform/elements/22.0.0/ja-JP/preview.js)
- Annotations: v5.1.0 (as of this post. Dynamically loaded from https://cdn.skypack.dev/box-annotations@latest)

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.