From 0f365aff40384a123415c89205db882ba5f16c61 Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Fri, 21 Mar 2025 22:06:17 +0000 Subject: [PATCH 1/4] Adds in an example to show how you can use the values inside a manifest --- .../customizing/foundation/localization.md | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/15/umbraco-cms/customizing/foundation/localization.md b/15/umbraco-cms/customizing/foundation/localization.md index 1ee2c371830..61cc1820489 100644 --- a/15/umbraco-cms/customizing/foundation/localization.md +++ b/15/umbraco-cms/customizing/foundation/localization.md @@ -154,6 +154,31 @@ You can use the same `args` attribute to pass the arguments: ``` +### Using with manifests +You can localize values in a manifest, for example the name of the dashboard tab that is visible in the UI, by prefxing the value with a #. +For example a manifest for registering a dashboard with umbraco-package.json or via JavaScript can localize the label property in the meta object like so. + +{% code title="umbraco-package.json" lineNumbers="true" %} + +```json +{ + "name": "My.WelcomePackage", + "extensions": [ + { + "type": "dashboard", + ... + "meta": { + "label": "#welcomeDashboard_label", + "pathname": "welcome-dashboard" + }, + }, + ] +} +``` + +{% endcode %} + + ## Examples You can add your own localization keys using the principles you have learned, and apply them in a number of ways: From 5faca0069c063c39524450a48abbebd88698c9cb Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:08:56 +0100 Subject: [PATCH 2/4] Update 15/umbraco-cms/customizing/foundation/localization.md --- 15/umbraco-cms/customizing/foundation/localization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15/umbraco-cms/customizing/foundation/localization.md b/15/umbraco-cms/customizing/foundation/localization.md index 61cc1820489..241cd09aabb 100644 --- a/15/umbraco-cms/customizing/foundation/localization.md +++ b/15/umbraco-cms/customizing/foundation/localization.md @@ -155,7 +155,7 @@ You can use the same `args` attribute to pass the arguments: ``` ### Using with manifests -You can localize values in a manifest, for example the name of the dashboard tab that is visible in the UI, by prefxing the value with a #. +You can localize values in a manifest. For example, prefix the name of the dashboard tab visible in the UI with a `#`. For example a manifest for registering a dashboard with umbraco-package.json or via JavaScript can localize the label property in the meta object like so. {% code title="umbraco-package.json" lineNumbers="true" %} From daea18755582f10fe13ac21fbb43d0fb450e86d6 Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:09:03 +0100 Subject: [PATCH 3/4] Update 15/umbraco-cms/customizing/foundation/localization.md --- 15/umbraco-cms/customizing/foundation/localization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/15/umbraco-cms/customizing/foundation/localization.md b/15/umbraco-cms/customizing/foundation/localization.md index 241cd09aabb..17bf763403d 100644 --- a/15/umbraco-cms/customizing/foundation/localization.md +++ b/15/umbraco-cms/customizing/foundation/localization.md @@ -156,7 +156,7 @@ You can use the same `args` attribute to pass the arguments: ### Using with manifests You can localize values in a manifest. For example, prefix the name of the dashboard tab visible in the UI with a `#`. -For example a manifest for registering a dashboard with umbraco-package.json or via JavaScript can localize the label property in the meta object like so. +For example,a manifest registering a dashboard with `umbraco-package.json` or JavaScript can localize the `label` property in the `meta` object like this. {% code title="umbraco-package.json" lineNumbers="true" %} From b25746a3223f2e85ec44ed807b101eff34406802 Mon Sep 17 00:00:00 2001 From: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> Date: Mon, 24 Mar 2025 10:10:23 +0100 Subject: [PATCH 4/4] Update 15/umbraco-cms/customizing/foundation/localization.md --- 15/umbraco-cms/customizing/foundation/localization.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/15/umbraco-cms/customizing/foundation/localization.md b/15/umbraco-cms/customizing/foundation/localization.md index 17bf763403d..d96f6ce4663 100644 --- a/15/umbraco-cms/customizing/foundation/localization.md +++ b/15/umbraco-cms/customizing/foundation/localization.md @@ -156,7 +156,9 @@ You can use the same `args` attribute to pass the arguments: ### Using with manifests You can localize values in a manifest. For example, prefix the name of the dashboard tab visible in the UI with a `#`. -For example,a manifest registering a dashboard with `umbraco-package.json` or JavaScript can localize the `label` property in the `meta` object like this. + +#### Example +A manifest registering a dashboard with `umbraco-package.json` or JavaScript can localize the `label` property in the `meta` object like this. {% code title="umbraco-package.json" lineNumbers="true" %}