From 98046f4098deccace577fec199a733d9869f4b5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20L=C3=B6fstrand?= Date: Tue, 11 Feb 2025 16:34:48 +0100 Subject: [PATCH 1/2] Update localization.md Update localization documentation to reflect new language file naming and available translations. --- 15/umbraco-forms/developer/localization.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/15/umbraco-forms/developer/localization.md b/15/umbraco-forms/developer/localization.md index c2cefbd7512..0911d5072af 100644 --- a/15/umbraco-forms/developer/localization.md +++ b/15/umbraco-forms/developer/localization.md @@ -14,17 +14,16 @@ Umbraco Forms ships with translations for the following languages: - Czech (`cs-cz.js`) - Danish (`da-dk.js`) - - Spanish (`es-es.js`) + - Dutch (`nl-nl.js`) - French (`fr-fr.js`) - Italian (`it-it.js`) - Polish (`pl-pl.js`) - - UK English (`en-gb.js`) - - US English (`en-us.js`) - - Dutch (`nl-nl.js`) + - Spanish (`es-es.js`) + - US English (`en.js`) -If the language you require does not exist, it's possible to create your own by duplicating the default `en-us.js` file. You can then save it with the appropriate culture code for the language you need and replace the English text with the translated version. +If the language you require does not exist, it's possible to create your own by duplicating the default `en.js` file. You can then save it with the appropriate culture code for the language you need and replace the English text with the translated version. -As of Forms 10, the file no longer exists on disk and is shipped as part of the `Umbraco.Forms.StaticAssets` NuGet package. You can open this package, either locally using [Nuget Package Explorer](https://apps.microsoft.com/store/detail/nuget-package-explorer/9WZDNCRDMDM3?hl=en-gb&gl=gb&rtc=1), or [online](https://www.nuget.org/packages/Umbraco.Forms.StaticAssets/) by clicking the "Open in NuGet Package Explorer" link. You'll find the file at `staticwebassets/en-us.js`. +As of Forms 10, the file no longer exists on disk and is shipped as part of the `Umbraco.Forms.StaticAssets` NuGet package. You can open this package, either locally using [Nuget Package Explorer](https://apps.microsoft.com/store/detail/nuget-package-explorer/9WZDNCRDMDM3?hl=en-gb&gl=gb&rtc=1), or [online](https://www.nuget.org/packages/Umbraco.Forms.StaticAssets/) by clicking the "Open in NuGet Package Explorer" link. You'll find the file at `staticwebassets/en.js`. Once translated, the new file should be saved somewhere in the `App_Plugins` folder for example `App_Plugins/UmbracoFormsLocalization/`. The final step is to register the localization file. This can be done by creating a `umbraco-package.json` like so: From 3140f0e154d258080c33910953d187656c3d752f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20L=C3=B6fstrand?= Date: Mon, 17 Feb 2025 16:17:45 +0100 Subject: [PATCH 2/2] Update 15/umbraco-forms/developer/localization.md Co-authored-by: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> --- 15/umbraco-forms/developer/localization.md | 1 + 1 file changed, 1 insertion(+) diff --git a/15/umbraco-forms/developer/localization.md b/15/umbraco-forms/developer/localization.md index 0911d5072af..ace9fb09a0c 100644 --- a/15/umbraco-forms/developer/localization.md +++ b/15/umbraco-forms/developer/localization.md @@ -19,6 +19,7 @@ Umbraco Forms ships with translations for the following languages: - Italian (`it-it.js`) - Polish (`pl-pl.js`) - Spanish (`es-es.js`) + - UK English (`en-gb.js`) - US English (`en.js`) If the language you require does not exist, it's possible to create your own by duplicating the default `en.js` file. You can then save it with the appropriate culture code for the language you need and replace the English text with the translated version.