Annotations control not localised

オープン
#723 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
typescript

調査の方向性

リンクされた CodePen と BoxAnnotations の intl.locale: "ja-JP" オプションを使って問題を再現し、ドキュメントに記載されたサポート対象ロケールの一覧を期待される動作として使用します。アノテーションコントロールとツールチップがどのようにロケールを取得するかを追跡し、修正が完了した時点で影響を受けるコントロールに日本語が表示されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
12
フォーク
53
平均マージ
21時間 52分
マージ済み PR(30日)
21

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

box/box-annotations のほかの issue

box/box-annotations の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。