File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
15/umbraco-cms/customizing/foundation Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,33 @@ You can use the same `args` attribute to pass the arguments:
154154<umb-localize key =" section_numberOfItems" args =" [5]" ></umb-localize >
155155```
156156
157+ ### Using with manifests
158+ You can localize values in a manifest. For example, prefix the name of the dashboard tab visible in the UI with a ` # ` .
159+
160+ #### Example
161+ A manifest registering a dashboard with ` umbraco-package.json ` or JavaScript can localize the ` label ` property in the ` meta ` object like this.
162+
163+ {% code title="umbraco-package.json" lineNumbers="true" %}
164+
165+ ``` json
166+ {
167+ "name" : " My.WelcomePackage" ,
168+ "extensions" : [
169+ {
170+ "type" : " dashboard" ,
171+ ...
172+ "meta" : {
173+ "label" : " #welcomeDashboard_label" ,
174+ "pathname" : " welcome-dashboard"
175+ },
176+ },
177+ ]
178+ }
179+ ```
180+
181+ {% endcode %}
182+
183+
157184## Examples
158185
159186You can add your own localization keys using the principles you have learned, and apply them in a number of ways:
You can’t perform that action at this time.
0 commit comments