diff --git a/AGENTS.md b/AGENTS.md index 0e635fa7..a2ad7278 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c67eae7..474641db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/locales/az/translation.json b/src/locales/az/translation.json index b63aa9e7..03c50d75 100644 --- a/src/locales/az/translation.json +++ b/src/locales/az/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>OSM-də aç. 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)", diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json index cc0e624e..286a533b 100644 --- a/src/locales/de/translation.json +++ b/src/locales/de/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>In OSM öffnen. Ö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)", diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json index e05d32c3..688cfaed 100644 --- a/src/locales/fr/translation.json +++ b/src/locales/fr/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>Ouvrir dans OSM. 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)", diff --git a/src/locales/he/translation.json b/src/locales/he/translation.json index 4b99de18..22ba7faa 100644 --- a/src/locales/he/translation.json +++ b/src/locales/he/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>פתיחה ב-OSM. פתיחה של התצוגה הנוכחית ב- 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)", diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json index 27de4b95..ccf13e5c 100644 --- a/src/locales/it/translation.json +++ b/src/locales/it/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>Apri in OSM. 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)", diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json index e60468b4..f879f9be 100644 --- a/src/locales/ja/translation.json +++ b/src/locales/ja/translation.json @@ -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. Opens the current view on openstreetmap.org": "現在のビューを <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)", diff --git a/src/locales/ko/translation.json b/src/locales/ko/translation.json index c51d1163..cc85f325 100644 --- a/src/locales/ko/translation.json +++ b/src/locales/ko/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>OSM에서 열기. 현재 뷰를 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)", diff --git a/src/locales/pl/translation.json b/src/locales/pl/translation.json index 28c5a71d..4ed100d4 100644 --- a/src/locales/pl/translation.json +++ b/src/locales/pl/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>Otwórz w OSM, 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)", diff --git a/src/locales/tr/translation.json b/src/locales/tr/translation.json index f5ae4865..844c0373 100644 --- a/src/locales/tr/translation.json +++ b/src/locales/tr/translation.json @@ -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. Opens the current view on openstreetmap.org": "<0>OSM'de aç. 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)", diff --git a/src/locales/translations.test.ts b/src/locales/translations.test.ts new file mode 100644 index 00000000..e9e42e70 --- /dev/null +++ b/src/locales/translations.test.ts @@ -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([]); + }); +}); diff --git a/src/locales/zh/translation.json b/src/locales/zh/translation.json index 765f03bf..00116c7a 100644 --- a/src/locales/zh/translation.json +++ b/src/locales/zh/translation.json @@ -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. 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)",