# nativescript-localize **Repository Path**: mirrors_NativeScript/nativescript-localize ## Basic Information - **Project Name**: nativescript-localize - **Description**: Internationalization plugin for NativeScript using native capabilities of each platform - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-13 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nativescript-localize [![npm](https://img.shields.io/npm/v/nativescript-localize.svg)](https://www.npmjs.com/package/nativescript-localize) [![npm](https://img.shields.io/npm/dm/nativescript-localize.svg)](https://www.npmjs.com/package/nativescript-localize) This is a plugin for NativeScript that implements internationalization (i18n) using the native capabilities of each platform. It is inspired from [nativescript-i18n](https://github.com/rborn/nativescript-i18n) ## Credits A lot of thanks goes out to [Ludovic Fabrèges (@lfabreges)](https://github.com/lfabreges) for developing and maintaining this plugin in the past. When he had to abandon it due to shifted priorities, he was kind enough to [move the repo to me](https://github.com/EddyVerbruggen/nativescript-localize/issues/73). ## Table of contents * [Installation](#installation) * [Usage](#usage) * [Angular](#angular) * [Javascript](#javascript) * [Vue](#vue) * [File format](#file-format) * [Frequently asked questions](#frequently-asked-questions) * [How to set the default language?](#how-to-set-the-default-language) * [How to localize the application name?](#how-to-localize-the-application-name) * [How to localize iOS properties?](#how-to-localize-ios-properties) * [How to change the language dynamically at runtime?](#how-to-change-the-language-dynamically-at-runtime) * [Troubleshooting](#troubleshooting) * [The angular localization pipe does not work when in a modal context](#the-angular-localization-pipe-does-not-work-when-in-a-modal-context) ## Installation ```shell tns plugin add nativescript-localize ``` ## Usage Create a folder `i18n` in the `app` folder with the following structure: ``` app | i18n | en.json <-- english language | fr.default.json <-- french language (default)     | es.js ``` You need to [set the default langage](#how-to-set-the-default-language) and make sure it contains the [application name](#how-to-localize-the-application-name) to avoid any error. ### Angular #### app.module.ts ```ts import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core"; import { NativeScriptLocalizeModule } from "nativescript-localize/angular"; import { NativeScriptModule } from "nativescript-angular/nativescript.module"; import { AppComponent } from "./app.component"; @NgModule({ declarations: [AppComponent], bootstrap: [AppComponent], imports: [ NativeScriptModule, NativeScriptLocalizeModule ], schemas: [NO_ERRORS_SCHEMA] }) export class AppModule { } ``` #### Template ```xml