日本語ドキュメンテーション用翻訳用のソースです。
Geolonia Javascript API ドキュメントの翻訳ソースとして使用しています。
https://geolonia.github.io/ja-maplibre-gl-js-docs/api/
翻訳する手順は、セクション毎に異なります。以下の手順に沿って翻訳して下さい。
https://geolonia.github.io/ja-maplibre-gl-js-docs/api/
- 翻訳ファイルは、
src/
以下にありますので、エディタで翻訳する文章を検索して下さい。 - 以下の様に英文を
//
でコメントアウトし、下に日本語を書きます。(/** ... */
にコメントアウトすると、表示されてしまうので、上部に原文をまとめています)
// * @param {number} [options.maxZoom=22] The maximum zoom level of the map (0-24).
* @param {number} [options.maxZoom=22] 地図の最大表示倍率(0〜24)。
https://geolonia.github.io/ja-maplibre-gl-js-docs/plugins/
- ja-maplibre-gl-js-docsの pluguins.json を編集して下さい。(https://github.com/geolonia/ja-maplibre-gl-js-docs/blob/main/docs/data/plugins.json)
- 翻訳する行はコピーして翻訳し、原文は、
_description
の様にアンダーバーを付けて残しておいて下さい。
"mapbox-gl-accessibility": {
"website": "https://github.com/mapbox/mapbox-gl-accessibility/",
"_description": "Integrates with ARIA-compatible screen readers for users with visual impairments.",
"description": "視覚障がい者向けARIA対応スクリーンリーダーとの連携。"
},
https://geolonia.github.io/ja-maplibre-gl-js-docs/style-spec/
v8.json
(https://github.com/geolonia/ja-maplibre-gl-js/blob/main/src/style-spec/reference/v8.json) を編集して下さい。- 翻訳する行はコピーして翻訳し、原文は、
_doc
の様にアンダーバーを付けて残しておいて下さい。
"name": {
"type": "string",
"_doc": "A human-readable name for the style.",
"doc": "人間にとって読みやすいスタイルの名前",
...
},