# DialogService Localization (i18n)

**URL:** <https://forum.radzen.com/t/dialogservice-localization-i18n/5587>\
**Category:** Blazor Server\
**Created:** [November 11, 2020, 3:05pm UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587 "2020-11-11T15:05:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![svrebelo001](https://forum.radzen.com/user_avatar/forum.radzen.com/svrebelo001/32/4796_2.png) [@svrebelo001](https://forum.radzen.com/u/svrebelo001)\
**Post date:** [November 11, 2020, 3:05pm UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587/1 "2020-11-11T15:05:51Z")

</div>

Good afternoon everyone,

So I was exploring the Internationalization (i18) but I'm only able to translate the DialogService message (content) inside the Dialog (Modal/Pop-up window). I still see the header (Confirm) and the buttons (OK and Cancel) in English.

How I can I translate them?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![svrebelo001](https://forum.radzen.com/user_avatar/forum.radzen.com/svrebelo001/32/4796_2.png) [@svrebelo001](https://forum.radzen.com/u/svrebelo001)\
**Post date:** [November 12, 2020, 10:28am UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587/2 "2020-11-12T10:28:13Z")

</div>

I have also another question related to i18n.

Can someone give me an example how to localize strings in UploadController.cs (for example) ?

Thanks

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 12, 2020, 10:33am UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587/3 "2020-11-12T10:33:03Z")

</div>

We recommend reviewing the official Microsoft documentation:

> **[ASP.NET Core Blazor globalization and localization](https://docs.microsoft.com/en-us/aspnet/core/blazor/globalization-localization?view=aspnetcore-5.0)**
>
> Learn how to make Razor components accessible to users in multiple cultures and languages.

and

> **[Globalization and localization in ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization?view=aspnetcore-5.0)**
>
> Learn how ASP.NET Core provides services and middleware for localizing content into different languages and cultures.

---

<div class="post-metadata">

**Author:** ![svrebelo001](https://forum.radzen.com/user_avatar/forum.radzen.com/svrebelo001/32/4796_2.png) [@svrebelo001](https://forum.radzen.com/u/svrebelo001)\
**Post date:** [November 12, 2020, 10:35am UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587/4 "2020-11-12T10:35:02Z")

</div>

Thank you. It will help a lot.

Can you check my first post regarding the DialogService ?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [November 12, 2020, 10:40am UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587/5 "2020-11-12T10:40:30Z")

</div>

The answer is to use the Localization API that Blazor/ASP.NET Core provides.

---

<div class="post-metadata">

**Author:** ![svrebelo001](https://forum.radzen.com/user_avatar/forum.radzen.com/svrebelo001/32/4796_2.png) [@svrebelo001](https://forum.radzen.com/u/svrebelo001)\
**Post date:** [November 12, 2020, 10:53am UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587/6 "2020-11-12T10:53:42Z")

</div>

Alright! Sounds great.

Thank you once again

---

<div class="post-metadata">

**Author:** ![Black\_One](https://forum.radzen.com/user_avatar/forum.radzen.com/black_one/32/13146_2.png) [@Black\_One](https://forum.radzen.com/u/Black_One)\
**Post date:** [January 24, 2023, 7:50am UTC](https://forum.radzen.com/t/dialogservice-localization-i18n/5587/7 "2023-01-24T07:50:46Z")

</div>

Did you find any soulution for translate header and buttons for dialogservice
