# Localization and Globalization

DTML.org platform is used by the teachers and students from more that 120 countries and thus needs to be properly localized and globalized

**Resource strings**

All strings used in the code should come from resource files. Resources are assembled in \*.resx files located in  DTML.Resources project. All English strings should be entered into Resources.resx file.&#x20;

In you can reference strings from resource files. C# Example:

```aspnet
var myText = Resources.Resources.YourString;
```

**JS Localization**

Sometimes you need to use string directly in JavaScript, not in the controller or in the view. For that purpose we use JSResources.cshtml view which is referenced on master layout. All string from Resources.resx are automatically available in your JavaScript code via window\.Resources object.&#x20;

No extra code is needed. JS Example:

```
toastr.warning(window.Resources.CustomizedURLLimitReached);
```

**Automatic Resource Translation**

We are using Bing Translator API for localizing resource strings. To run automatic translation, please use ResxTranslator utility: $..\DTML.BuildTools\ResxTranslator\bin\Debug\ResxTranslator.exe&#x20;

1. Select .resxFile radio button option
2. Click \[...] to navigate and select  Resources.resx file
3. Click "Start Translation" button


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.dtml.org/localization-and-globalization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
