You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,8 @@
1
+
# 2.1.0
2
+
3
+
- Add language code "local" [#133](https://github.com/mapbox/vtcomposite/pull/133)
4
+
- Fixes a bug where `worldview` value in a non-localized tile can be truncated [#133](https://github.com/mapbox/vtcomposite/pull/133)
5
+
1
6
# 2.0.2
2
7
3
8
- Fixes a bug in `localize` where the class and worldview key prefixes were true for soft matches, which unintentionally filters out features where `class = class*`. Now the logic uses an exact match so `class != classes`. [#134](https://github.com/mapbox/vtcomposite/pull/134)
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,10 +79,15 @@ A filtering function for modifying a tile's features and properties to support l
79
79
-`params.hidden_prefix`**String** prefix for any additional properties that will be used to override non-prefixed properties.
80
80
- Default value: `_mbx_`.
81
81
- Any property that starts with this prefix are considered hidden properties and thus will be dropped.
82
-
-`params.languages`**Array<Optional<String>>** array of IETF BCP 47 language codes used to search for matching translations available in a feature's properties.
82
+
-`params.languages`**Array<Optional<String>>** array of IETF BCP 47 language codes or the string `local`, used to search for matching translations available in a feature's properties.
83
83
- Optional parameter.
84
84
- All language-related properties must match the following format: `{hidden_prefix}{language_property}_{language}`.
85
85
- Default properties are `_mbx_name_{language}`; for example, the `_mbx_name_jp` property contains the Japanese translation for the value in `name`.
86
+
-`local` language code represents "`{language_property}` is in a script that is not in the `params.omit_scripts` list".
87
+
- The script of `{language_property}`, if available, must be stored in the `{language_property}_script` property.
88
+
- If `{language_property}_script` not in the `params.omit_scripts` list, use `{language_property}` when searching for matching translation.
89
+
- If `{language_property}_script` is in the `params.omit_scripts` list, skip `{language_property}` when searching for matching translation.
90
+
-`params.omit_scripts`**Array<Optional<String>>** array of scripts to skip `local` language code.
86
91
-`params.language_property`**String** the primary property in features that identifies the feature in a language.
87
92
- Default value: `name`.
88
93
- This values is used to search for additional translations that match the following format `{language_property}_{language}`.
0 commit comments