# Globalization - Translation

Ionic 4 apps can translate text into multiple languages, and can even detect the device's language and locale to translate the given app into.&#x20;

![](/files/-LubNJKXk1Aj2H3YljVS)

### Translation

The main library used for translation is [ngx-translate](https://github.com/ngx-translate/core). It is an Angular library that can be used in Ionic 4 as well.

### Detecting Device Language

To detect device language, you can use Cordova's plugin - [cordova-plugin-globalization](https://github.com/apache/cordova-plugin-globalization)

### Step-by-Step instructions

Check the step-by-step instructions of how to implement translation in your Ionic 4 app on our blog - [How to translate in Ionic 4](https://medium.com/enappd/how-to-translate-in-ionic-4-globalization-internationalization-and-localization-31ec5807a8bc)


---

# 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://enappd.gitbook.io/capacitor-full-app-ionic-angular/features/startup-features/addons/globalization-translation.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.
