From 8b02a769ba4dde327f235ead10b341c523b96dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Qvarnstr=C3=B6m?= Date: Mon, 9 Sep 2024 14:23:19 +0200 Subject: [PATCH] Update localization.md Proposed documentation update to clarify the need for setting extension .json files as EmbeddedResource to ensure their inclusion during the build process in both development and production environments. This change aims to prevent issues with missing translations and improve localization reliability. --- docs/en/framework/fundamentals/localization.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en/framework/fundamentals/localization.md b/docs/en/framework/fundamentals/localization.md index 61f8e58691f..ee407e6d546 100644 --- a/docs/en/framework/fundamentals/localization.md +++ b/docs/en/framework/fundamentals/localization.md @@ -157,6 +157,7 @@ services.Configure(options => ```` * If an extension file defines the same localized string, it overrides the string. +* It is crucial to set extension .json files as EmbeddedResource in your project file. This ensures that the files are correctly included in the assembly during both development and production builds, making them available for use at runtime. ## Getting the Localized Texts @@ -255,4 +256,4 @@ See the following documents to learn how to reuse the same localization texts in * [Localization for the MVC / Razor Pages UI](../ui/mvc-razor-pages/javascript-api/localization) * [Localization for the Blazor UI](../ui/blazor/localization.md) * [Localization for the Angular UI](../ui/angular/localization.md) -* [Video tutorial](https://abp.io/video-courses/essentials/localization) \ No newline at end of file +* [Video tutorial](https://abp.io/video-courses/essentials/localization)