Add missing translations and a test that fails when one is missing (#2407)

Follow-up to the review on #2403.

New unit test `src/locales/translations.test.ts` runs the i18next-cli
extractor (the code behind `npm run i18n:extract`) without writing
anything. It fails if any locale is missing a key used in the code, or
still has the `__STRING_NOT_TRANSLATED__` placeholder. It's part of `npm
run test-unit`, so the existing unit test job in CI runs it and no
workflow change is needed. On failure it lists each missing `locale:
key`.

On `main` the test fails with 8 keys missing in all 10 locales. They
came from #2395, #2397 and #2405. This PR adds translations for them:

- `{{label}} row {{row}} anchor` / `X offset` / `Y offset`
- `Generate feature IDs`, `Feature ID property`, `Feature ID properties
by source layer`, `Enter a JSON object mapping source layer names to
property names.`
- `Use current map view`

The translators listed in `src/locales/README.md` may want to check the
wording. I matched the terms each locale already uses (for example
"Source Layer", "Map view").

The AGENTS.md Translations section now mentions the test.

**Performance:** no runtime impact. It only adds JSON entries and a unit
test, which takes about 2 seconds.

## Launch Checklist

 - [x] Briefly describe the changes in this PR.
 - [x] Link to related issues: follow-up to #2403.
- [x] Include before/after visuals or gifs if this PR includes visual
changes. (No visual change in English. The other locales show the new
strings instead of the English fallback.)
- [x] Write tests for all new functionality: `translations` in
`src/locales/translations.test.ts`. It fails on `main` with the 8
missing keys.
 - [x] Add an entry to `CHANGELOG.md` under the `## main` section.

Tested locally: `npm run lint` clean, `npm run build` clean, `npx vitest
run` (60 passed), `npm run test-unit-ci` passed, and `npx i18next-cli
extract --ci --dry-run` reports no changes. Before adding the
translations, the new test failed with the 80 missing `locale: key`
entries.

Assisted-By: Claude Opus 5.5 (Claude Code). It helped write the test,
the translations and this description. I've reviewed and tested the
change and can answer questions about it.
This commit is contained in:
SHAIK KHADEER BASHA authored and GitHub committed 2026-12-05 08:16:50 +02:00
1 parent f5bd7c6176
commit 6876ffa08e
13 files changed
+97 -1

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ npm run test-unit
## Translations
- Every new user-visible string goes through `t()` and needs a translation in each `src/locales/*/translation.json`, kept in alphabetical key order.
- `npm run i18n:extract` adds missing keys with the value `__STRING_NOT_TRANSLATED__`; replace each one with a real translation. `npx i18next-cli status` lists keys that are still missing.
- `npm run i18n:extract` adds missing keys with the value `__STRING_NOT_TRANSLATED__`; replace each one with a real translation. `npx i18next-cli status` lists keys that are still missing, and `src/locales/translations.test.ts` fails in `npm run test-unit` until every locale has them.
## Pull Requests
+1
View File
@@ -36,6 +36,7 @@
- The debug modal now shows the MapLibre options for any renderer other than OpenLayers (e.g. `mbgljs`)
- Checkboxes for properties that default to `true` (e.g. `fill-antialias`, `text-keep-upright`) are now shown checked when the property is unset
- Global state values are now saved as JSON (numbers, booleans, arrays, objects) instead of always as strings
- Translate the variable anchor offset row labels, the feature ID fields and the "Use current map view" button in every language, and add a unit test that fails when a translation is missing
- _...Add new stuff here..._
## 3.1.0
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} sətir {{row}} lövbər",
"{{label}} row {{row}} X offset": "{{label}} sətir {{row}} X sürüşməsi",
"{{label}} row {{row}} Y offset": "{{label}} sətir {{row}} Y sürüşməsi",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>OSM-də aç</0>. Cari görünüşü openstreetmap.org saytında açır",
"Achromatopsia filter": "Axromatopsiya süzgəci",
"Active Sources": "Aktiv Mənbələr",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "Yan panelin ölçüsünü dəyişmək üçün sürükləyin",
"Duplicate": "Dublikat et",
"Encoding": "Kodlaşdırma",
"Enter a JSON object mapping source layer names to property names.": "Mənbə qatı adlarını xüsusiyyət adlarına uyğunlaşdıran JSON obyekti daxil edin.",
"Enter URL...": "URL daxil edin...",
"every filter matches": "bütün süzgəclər uyğun gəlirsə",
"Expand": "Genişlət",
"Export modal": "İxrac modalı",
"Feature ID properties by source layer": "Mənbə qatına görə obyekt ID xüsusiyyətləri",
"Feature ID property": "Obyekt ID xüsusiyyəti",
"Filter": "Süzgəc",
"Focus map": "Xəritəyə fokuslan",
"Fog color": "Duman rəngi",
@@ -73,6 +79,7 @@
"Function": "Funksiya",
"Gallery Styles": "Qalereya Üslubları",
"General layout properties": "Ümumi düzülüş xassələri",
"Generate feature IDs": "Obyekt ID-lərini yarat",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "Növ",
"Unique ID that identifies the source and is used in the layer to reference the source.": "Mənbəni müəyyən edən və qatda mənbəyə istinad üçün istifadə olunan unikal ID.",
"Upgrade to expression": "İfadəyə yüksəlt",
"Use current map view": "Cari xəritə görünüşündən istifadə et",
"Value": "Dəyər",
"Vector (PMTiles)": "Vektor (PMTiles)",
"Vector (Tile URLs)": "Vektor (Kafel URL-ləri)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} Zeile {{row}} Anker",
"{{label}} row {{row}} X offset": "{{label}} Zeile {{row}} X-Versatz",
"{{label}} row {{row}} Y offset": "{{label}} Zeile {{row}} Y-Versatz",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>In OSM öffnen</0>. Öffnet die aktuelle Ansicht auf openstreetmap.org",
"Achromatopsia filter": "Achromatopsie-Filter",
"Active Sources": "Aktive Quellen",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "Ziehen, um die Seitenleiste zu skalieren",
"Duplicate": "Duplizieren",
"Encoding": "Kodierung",
"Enter a JSON object mapping source layer names to property names.": "JSON-Objekt eingeben, das Namen von Quellenebenen auf Eigenschaftsnamen abbildet.",
"Enter URL...": "URL eingeben...",
"every filter matches": "alle Filter passen",
"Expand": "Ausklappen",
"Export modal": "Modale Fenster exportieren",
"Feature ID properties by source layer": "Feature-ID-Eigenschaften je Quellenebene",
"Feature ID property": "Feature-ID-Eigenschaft",
"Filter": "Filter",
"Focus map": "Karte fokussieren",
"Fog color": "Nebelfarbe",
@@ -73,6 +79,7 @@
"Function": "Funktion",
"Gallery Styles": "Galerie-Stile",
"General layout properties": "Allgemeine Layouteigenschaften",
"Generate feature IDs": "Feature-IDs generieren",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "Typ",
"Unique ID that identifies the source and is used in the layer to reference the source.": "Eindeutige ID, die die Quelle identifiziert und in der Ebene verwendet wird, um auf die Quelle zu verweisen.",
"Upgrade to expression": "Aufrüsten zu Ausdruck",
"Use current map view": "Aktuelle Kartenansicht verwenden",
"Value": "Wert",
"Vector (PMTiles)": "Vektor (PMTiles)",
"Vector (Tile URLs)": "Vektor (Tile URLs)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} ligne {{row}} ancre",
"{{label}} row {{row}} X offset": "{{label}} ligne {{row}} décalage X",
"{{label}} row {{row}} Y offset": "{{label}} ligne {{row}} décalage Y",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>Ouvrir dans OSM</0>. Ouvre la vue actuelle sur openstreetmap.org",
"Achromatopsia filter": "Filtre Achromatopsie",
"Active Sources": "Sources actives",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "Glisser pour redimensionner la barre latérale",
"Duplicate": "Dupliquer",
"Encoding": "Encodage",
"Enter a JSON object mapping source layer names to property names.": "Saisissez un objet JSON associant les noms des calques source aux noms de propriétés.",
"Enter URL...": "Entrez l'URL...",
"every filter matches": "tous les filtres correspondent",
"Expand": "Développer",
"Export modal": "Exporter (modale)",
"Feature ID properties by source layer": "Propriétés d'ID d'entité par calque source",
"Feature ID property": "Propriété d'ID d'entité",
"Filter": "Filtre",
"Focus map": "Focus sur la carte",
"Fog color": "Couleur du brouillard",
@@ -73,6 +79,7 @@
"Function": "Fonction",
"Gallery Styles": "Styles de la galerie",
"General layout properties": "Propriétés générales de mise en page",
"Generate feature IDs": "Générer les ID d'entité",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "Type",
"Unique ID that identifies the source and is used in the layer to reference the source.": "ID unique qui identifie la source et est utilisé dans le calque pour référencer la source.",
"Upgrade to expression": "Mettre à niveau vers une expression",
"Use current map view": "Utiliser la vue actuelle de la carte",
"Value": "Valeur",
"Vector (PMTiles)": "Vecteur (PMTiles)",
"Vector (Tile URLs)": "Vecteur (URLs Tile)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} שורה {{row}} עוגן",
"{{label}} row {{row}} X offset": "{{label}} שורה {{row}} היסט X",
"{{label}} row {{row}} Y offset": "{{label}} שורה {{row}} היסט Y",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>פתיחה ב-OSM</0>. פתיחה של התצוגה הנוכחית ב- openstreetmap.org",
"Achromatopsia filter": "Achromatopsia filter",
"Active Sources": "מקורות פעילים",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "יש לגרור כדי לשנות את גודל סרגל הצד",
"Duplicate": "שכפול",
"Encoding": "קידוד",
"Enter a JSON object mapping source layer names to property names.": "הזינו אובייקט JSON שממפה שמות של שכבות מקור לשמות מאפיינים.",
"Enter URL...": "הכנסו כתובת",
"every filter matches": "כל הסינונים מתאימים",
"Expand": "הגדלה",
"Export modal": "חלונית ייצוא",
"Feature ID properties by source layer": "מאפייני מזהה ישות לפי שכבת מקור",
"Feature ID property": "מאפיין מזהה ישות",
"Filter": "סינון",
"Focus map": "פיקוס המפה",
"Fog color": "צבע ערפל",
@@ -73,6 +79,7 @@
"Function": "פונקציה",
"Gallery Styles": "גלריית סטיילים",
"General layout properties": "תכונות פריסה כלליות",
"Generate feature IDs": "יצירת מזהי ישויות",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "סוג",
"Unique ID that identifies the source and is used in the layer to reference the source.": "מזהה מקור ייחודי לטובת שימוש בשכבה",
"Upgrade to expression": "שדרוג לביטוי",
"Use current map view": "שימוש בתצוגת המפה הנוכחית",
"Value": "ערך",
"Vector (PMTiles)": "Vector (PMTiles)",
"Vector (Tile URLs)": "Vector (Tile URLs)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} riga {{row}} ancoraggio",
"{{label}} row {{row}} X offset": "{{label}} riga {{row}} offset X",
"{{label}} row {{row}} Y offset": "{{label}} riga {{row}} offset Y",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>Apri in OSM</0>. Apre la vista corrente su openstreetmap.org",
"Achromatopsia filter": "Filtro acromatopsia",
"Active Sources": "Sorgenti attive",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "Trascina per ridimensionare la barra laterale",
"Duplicate": "Duplica",
"Encoding": "Codifica",
"Enter a JSON object mapping source layer names to property names.": "Inserisci un oggetto JSON che associa i nomi dei livelli sorgente ai nomi delle proprietà.",
"Enter URL...": "Inserisci URL...",
"every filter matches": "tutti i filtri corrispondono",
"Expand": "Espandi",
"Export modal": "Esporta finestra modale",
"Feature ID properties by source layer": "Proprietà ID della feature per livello sorgente",
"Feature ID property": "Proprietà ID della feature",
"Filter": "Filtro",
"Focus map": "Metti a fuoco la mappa",
"Fog color": "Colore della nebbia",
@@ -73,6 +79,7 @@
"Function": "Funzione",
"Gallery Styles": "Galleria degli stili",
"General layout properties": "Proprietà generali del layout",
"Generate feature IDs": "Genera ID delle feature",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "Tipo",
"Unique ID that identifies the source and is used in the layer to reference the source.": "ID univoco che identifica la sorgente ed è utilizzato nel livello per fare riferimento alla sorgente.",
"Upgrade to expression": "Aggiorna a espressione",
"Use current map view": "Usa la vista mappa corrente",
"Value": "Valore",
"Vector (PMTiles)": "Vettore (PMTiles)",
"Vector (Tile URLs)": "Vettore (Tile URLs)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} {{row}}行目 アンカー",
"{{label}} row {{row}} X offset": "{{label}} {{row}}行目 Xオフセット",
"{{label}} row {{row}} Y offset": "{{label}} {{row}}行目 Yオフセット",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "現在のビューを <0>openstreetmap.org で開く</0>",
"Achromatopsia filter": "全色盲フィルタ",
"Active Sources": "使用中ソース",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "ドラッグしてサイドバーのサイズを変更",
"Duplicate": "複製",
"Encoding": "エンコーディング",
"Enter a JSON object mapping source layer names to property names.": "ソースレイヤ名をプロパティ名に対応付けるJSONオブジェクトを入力してください。",
"Enter URL...": "URLを入力",
"every filter matches": "全てのフィルタが一致",
"Expand": "展開",
"Export modal": "書き出しのモーダル",
"Feature ID properties by source layer": "ソースレイヤごとの地物IDプロパティ",
"Feature ID property": "地物IDプロパティ",
"Filter": "フィルタ",
"Focus map": "地図にフォーカス",
"Fog color": "霧の色",
@@ -73,6 +79,7 @@
"Function": "関数",
"Gallery Styles": "ギャラリースタイル",
"General layout properties": "一般レイアウトプロパティ",
"Generate feature IDs": "地物IDを生成",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "タイプ",
"Unique ID that identifies the source and is used in the layer to reference the source.": "ソースを識別するためのユニークID。レイヤーでソースを参照するために使用されます。",
"Upgrade to expression": "式にアップグレード",
"Use current map view": "現在の地図画面を使用",
"Value": "値",
"Vector (PMTiles)": "ベクトル (PMTiles)",
"Vector (Tile URLs)": "ベクトル (Tile URLs)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} {{row}}행 앵커",
"{{label}} row {{row}} X offset": "{{label}} {{row}}행 X 오프셋",
"{{label}} row {{row}} Y offset": "{{label}} {{row}}행 Y 오프셋",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>OSM에서 열기</0>. 현재 뷰를 openstreetmap.org에서 엽니다",
"Achromatopsia filter": "전색맹 필터",
"Active Sources": "활성 소스",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "드래그하여 사이드바 크기 조정",
"Duplicate": "복제",
"Encoding": "인코딩",
"Enter a JSON object mapping source layer names to property names.": "소스 레이어 이름을 속성 이름에 매핑하는 JSON 객체를 입력하세요.",
"Enter URL...": "URL 입력...",
"every filter matches": "모든 필터 일치",
"Expand": "펼치기",
"Export modal": "모달 내보내기",
"Feature ID properties by source layer": "소스 레이어별 피처 ID 속성",
"Feature ID property": "피처 ID 속성",
"Filter": "필터",
"Focus map": "포커스 맵",
"Fog color": "안개 색상",
@@ -73,6 +79,7 @@
"Function": "함수",
"Gallery Styles": "갤러리 스타일",
"General layout properties": "일반 레이아웃 속성",
"Generate feature IDs": "피처 ID 생성",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "유형",
"Unique ID that identifies the source and is used in the layer to reference the source.": "소스를 식별하고 레이어에서 소스를 참조하는 데 사용되는 고유 ID입니다.",
"Upgrade to expression": "표현식으로 업그레이드",
"Use current map view": "현재 맵 뷰 사용",
"Value": "값",
"Vector (PMTiles)": "벡터 (PMTiles)",
"Vector (Tile URLs)": "벡터 (Tile URLs)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} wiersz {{row}} kotwica",
"{{label}} row {{row}} X offset": "{{label}} wiersz {{row}} przesunięcie X",
"{{label}} row {{row}} Y offset": "{{label}} wiersz {{row}} przesunięcie Y",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>Otwórz w OSM</0>, aby zobaczyć ten fragment mapy na openstreetmap.org.",
"Achromatopsia filter": "Symulacja achromatopsji",
"Active Sources": "Aktywne źródła",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "Przeciągnij, aby zmienić szerokość panelu bocznego",
"Duplicate": "Duplikuj",
"Encoding": "Kodowanie",
"Enter a JSON object mapping source layer names to property names.": "Wprowadź obiekt JSON przypisujący nazwom warstw źródłowych nazwy właściwości.",
"Enter URL...": "Wpisz adres URL…",
"every filter matches": "wszystkie warunki są spełnione",
"Expand": "Rozwiń",
"Export modal": "Okno eksportu",
"Feature ID properties by source layer": "Właściwości ID obiektu według warstwy źródłowej",
"Feature ID property": "Właściwość ID obiektu",
"Filter": "Filtr",
"Focus map": "Przejdź do mapy",
"Fog color": "Kolor mgły",
@@ -73,6 +79,7 @@
"Function": "Funkcja",
"Gallery Styles": "Galeria stylów",
"General layout properties": "Ogólne właściwości układu",
"Generate feature IDs": "Generuj ID obiektów",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "Typ",
"Unique ID that identifies the source and is used in the layer to reference the source.": "Unikatowy identyfikator używany w warstwach do wskazania źródła danych.",
"Upgrade to expression": "Przekształć filtr w wyrażenie",
"Use current map view": "Użyj bieżącego widoku mapy",
"Value": "Wartość",
"Vector (PMTiles)": "Źródło wektorowe (PMTiles)",
"Vector (Tile URLs)": "Źródło wektorowe (adresy URL kafli)",
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} satır {{row}} çapa",
"{{label}} row {{row}} X offset": "{{label}} satır {{row}} X ofseti",
"{{label}} row {{row}} Y offset": "{{label}} satır {{row}} Y ofseti",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "<0>OSM'de aç</0>. Mevcut görünümü openstreetmap.org üzerinde açar",
"Achromatopsia filter": "Akromatopsi filtresi",
"Active Sources": "Aktif Kaynaklar",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "Kenar çubuğunu yeniden boyutlandırmak için sürükleyin",
"Duplicate": "Kopyala",
"Encoding": "Kodlama",
"Enter a JSON object mapping source layer names to property names.": "Kaynak katman adlarını özellik adlarına eşleyen bir JSON nesnesi girin.",
"Enter URL...": "URL girin...",
"every filter matches": "tüm filtreler eşleşirse",
"Expand": "Genişlet",
"Export modal": "Dışa aktarma modalı",
"Feature ID properties by source layer": "Kaynak katmana göre nesne kimliği özellikleri",
"Feature ID property": "Nesne kimliği özelliği",
"Filter": "Filtre",
"Focus map": "Haritaya odaklan",
"Fog color": "Sis rengi",
@@ -73,6 +79,7 @@
"Function": "Fonksiyon",
"Gallery Styles": "Galeri Stilleri",
"General layout properties": "Genel yerleşim özellikleri",
"Generate feature IDs": "Nesne kimlikleri oluştur",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON)",
"GeoJSON (URL)": "GeoJSON (URL)",
@@ -205,6 +212,7 @@
"Type": "Tür",
"Unique ID that identifies the source and is used in the layer to reference the source.": "Kaynağı tanımlayan ve katmanda kaynağa referans vermek için kullanılan benzersiz kimlik.",
"Upgrade to expression": "İfadeye yükselt",
"Use current map view": "Geçerli harita görünümünü kullan",
"Value": "Değer",
"Vector (PMTiles)": "Vektör (PMTiles)",
"Vector (Tile URLs)": "Vektör (Döşeme URL'leri)",
+15
View File
@@ -0,0 +1,15 @@
import { describe, expect, it } from "vitest";
import { extract } from "i18next-cli";
import config from "../../i18next.config";
describe("translations", () => {
it("has a translated entry for every key used in the code, in every locale", async () => {
const results = await extract(config);
const missing = results.flatMap(result =>
Object.entries(result.newTranslations)
.filter(([, value]) => value === config.extract.defaultValue)
.map(([key]) => `${result.locale}: ${key}`)
);
expect(missing).toEqual([]);
});
});
+8
View File
@@ -1,4 +1,7 @@
{
"{{label}} row {{row}} anchor": "{{label}} 第 {{row}} 行锚点",
"{{label}} row {{row}} X offset": "{{label}} 第 {{row}} 行 X 偏移",
"{{label}} row {{row}} Y offset": "{{label}} 第 {{row}} 行 Y 偏移",
"<0>Open in OSM</0>. Opens the current view on openstreetmap.org": "在 openstreetmap.org 打开当前视图",
"Achromatopsia filter": "全色盲滤镜",
"Active Sources": "激活的源",
@@ -61,10 +64,13 @@
"Drag to resize the sidebar": "拖动以调整侧边栏大小",
"Duplicate": "复制",
"Encoding": "编码",
"Enter a JSON object mapping source layer names to property names.": "输入一个将源图层名称映射到属性名称的 JSON 对象。",
"Enter URL...": "输入URL...",
"every filter matches": "每个过滤器都匹配",
"Expand": "展开",
"Export modal": "导出模态框",
"Feature ID properties by source layer": "按源图层的要素 ID 属性",
"Feature ID property": "要素 ID 属性",
"Filter": "过滤器",
"Focus map": "聚焦地图",
"Fog color": "雾颜色",
@@ -73,6 +79,7 @@
"Function": "函数",
"Gallery Styles": "画廊样式",
"General layout properties": "常规布局属性",
"Generate feature IDs": "生成要素 ID",
"GeoJSON": "GeoJSON",
"GeoJSON (JSON)": "GeoJSON (JSON格式)",
"GeoJSON (URL)": "GeoJSON (URL格式)",
@@ -205,6 +212,7 @@
"Type": "类型",
"Unique ID that identifies the source and is used in the layer to reference the source.": "用于标识源并在图层中引用源的唯一ID。",
"Upgrade to expression": "升级为表达式",
"Use current map view": "使用当前地图视图",
"Value": "值",
"Vector (PMTiles)": "矢量数据 (PMTiles)",
"Vector (Tile URLs)": "矢量数据 (Tile URLs)",