[jp-sync] sync Japanese dock-manager localization section#1935
Conversation
- Update main localization paragraph to match rephrased English text - Add igniteui-i18n-resources/igniteui-i18n-core usage example to WebComponents block - Update ResourceStrings paragraph to match current English wording Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the Japanese Dock Manager documentation’s Localization section to reflect newer guidance on how localization is selected and how resource strings can be provided/overridden.
Changes:
- Rephrases the main localization paragraph (language detection + English fallback).
- Reworks the Web Components localization guidance (built-in resources vs
addResourceStrings). - Rephrases the
ResourceStringsoverride paragraph.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ドック マネージャーを使用すると、コンテキスト メニュー、ツールチップ、および ARIA 属性で使用される文字列をローカライズできます。デフォルトでは、ルートの `<html>` 要素の [lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性を読み取って使用する言語を決定します。[lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性がない場合またはサポートされていない値に設定されている場合、ドック マネージャーは [英語 (en)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsEN) を使用します。 | ||
|
|
||
| <!-- WebComponents --> | ||
| その他の言語のリソース文字列を提供するには、[addResourceStrings]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#addResourceStrings) メソッドを使用します。 | ||
| ドック マネージャーには、スペイン語 (`es`)、日本語 (`ja`)、韓国語 (`ko`) のすぐに使用できるリソース文字列が含まれています。これらの言語のいずれかを使用するには、`igniteui-i18n-resources` ピア依存関係をインストールし、対応するバンドルを `igniteui-i18n-core` で登録します。 | ||
|
|
There was a problem hiding this comment.
このセクションの内容が現状の英語版 doc/en/components/layouts/dock-manager.md の Localization 節と一致していません(英語版は「親要素を辿って lang を探す」「組み込み言語一覧」「addResourceStrings のみ」を説明しています)。英語版側の更新がこのPRに含まれていない/ブランチが取り込めていない可能性があるため、同期元の英語内容と突き合わせたうえで、JP側を同じ仕様説明に揃えてください。
| ## ローカライズ | ||
|
|
||
| ドック マネージャー コンポーネントは、コンテキスト メニュー、ツールチップ、および aria 属性で使用される文字列のローカライズをサポートします。デフォルトでは、ドック マネージャー はその親の [lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性を検索してページの言語を検出します。[lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性が設定されていないか、ドック マネージャーがサポートしない値に設定されている場合、デフォルトの言語は [英語 (en)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsEN) です。ドック マネージャーは、[英語 (en)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsEN)、[日本語 (jp)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsJP)、[韓国語 (ko)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsKO)、[スペイン語 (es)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsES) の組み込みローカライズ文字列を提供します。 | ||
| ドック マネージャーを使用すると、コンテキスト メニュー、ツールチップ、および ARIA 属性で使用される文字列をローカライズできます。デフォルトでは、ルートの `<html>` 要素の [lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性を読み取って使用する言語を決定します。[lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性がない場合またはサポートされていない値に設定されている場合、ドック マネージャーは [英語 (en)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsEN) を使用します。 |
There was a problem hiding this comment.
lang の取得元を「ルートの <html> 要素」と断定していますが、英語版ドキュメントでは「Dock Manager の親要素のいずれかにある lang 属性を検索」となっています。実装変更が伴っていない場合は誤情報になるので、実際の言語検出仕様(親探索なのか html ルート固定なのか)に合わせて記述を修正してください。
| ドック マネージャーを使用すると、コンテキスト メニュー、ツールチップ、および ARIA 属性で使用される文字列をローカライズできます。デフォルトでは、ルートの `<html>` 要素の [lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性を読み取って使用する言語を決定します。[lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性がない場合またはサポートされていない値に設定されている場合、ドック マネージャーは [英語 (en)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsEN) を使用します。 | |
| ドック マネージャーを使用すると、コンテキスト メニュー、ツールチップ、および ARIA 属性で使用される文字列をローカライズできます。デフォルトでは、Dock Manager の親要素のいずれかに指定された [lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性を上位から順に検索し、最初に見つかった値を使用する言語として決定します。[lang](https://developer.mozilla.org/ja/docs/Web/HTML/Global_attributes/lang) 属性が見つからない場合、またはサポートされていない値に設定されている場合、ドック マネージャーは [英語 (en)]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#IgcDockManagerResourceStringsEN) を使用します。 |
|
|
||
| <!-- WebComponents --> | ||
| その他の言語のリソース文字列を提供するには、[addResourceStrings]({environment:infragisticsBaseUrl}/products/ignite-ui/dock-manager/docs/typescript/latest/index.html#addResourceStrings) メソッドを使用します。 | ||
| ドック マネージャーには、スペイン語 (`es`)、日本語 (`ja`)、韓国語 (`ko`) のすぐに使用できるリソース文字列が含まれています。これらの言語のいずれかを使用するには、`igniteui-i18n-resources` ピア依存関係をインストールし、対応するバンドルを `igniteui-i18n-core` で登録します。 |
There was a problem hiding this comment.
組み込み言語コードとして日本語を ja としていますが、同リポジトリ内の英語版/韓国語版 Dock Manager ドキュメントでは日本語を (jp) と表記し、APIリンクも IgcDockManagerResourceStringsJP になっています。Dock Manager が実際に期待する言語コードに合わせて、ja/jp の表記を統一してください(ドキュメント間で食い違うと利用者が迷います)。
| ドック マネージャーには、スペイン語 (`es`)、日本語 (`ja`)、韓国語 (`ko`) のすぐに使用できるリソース文字列が含まれています。これらの言語のいずれかを使用するには、`igniteui-i18n-resources` ピア依存関係をインストールし、対応するバンドルを `igniteui-i18n-core` で登録します。 | |
| ドック マネージャーには、スペイン語 (`es`)、日本語 (`jp`)、韓国語 (`ko`) のすぐに使用できるリソース文字列が含まれています。これらの言語のいずれかを使用するには、`igniteui-i18n-resources` ピア依存関係をインストールし、対応するバンドルを `igniteui-i18n-core` で登録します。 |
|
@TomoyaWashio Can you, please, re-approve as I needed to resolve some merge conflicts that dismissed the initial approval? Thanks. |
Summary
Syncs the Japanese documentation for the Dock Manager component with the recent English changes.
Changed files
doc/en/components/layouts/dock-manager.mddoc/jp/components/layouts/dock-manager.mdWhat changed
The English
## Localizationsection was updated across two recent commits:Main localization paragraph (line 915): Rephrased to "The Dock Manager lets you localize the strings…" with clearer wording about reading the
langattribute from the root(html)element. Removed the inline list of built-in language links from this paragraph.WebComponents block (lines 917–938): Expanded to document the
igniteui-i18n-resourcespeer dependency andigniteui-i18n-coreregisterI18nAPI for using built-in Spanish/Japanese/Korean strings. Added a code example forregisterI18n, and clarified thataddResourceStringsis for custom/additional languages.ResourceStrings paragraph (line 941): Minor rephrase — "also exposes", "modify individual strings directly", and "strings you provide regardless of the
langattribute on the page".The Japanese file was updated with accurate translations of all new and rephrased prose while preserving code blocks, platform comment markers, template tokens, and all unchanged sections verbatim.
Note
🔒 Integrity filtering filtered 8 items
Integrity filtering activated and filtered the following items during workflow execution.
This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.
list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)list_commits: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)