React Native (js)

React Native applications typically use i18n-js or react-i18next for internationalisation, with translations stored in JavaScript module files that export string objects. The React Native format in Language Monster handles .js files that export a default object or named constant containing locale string mappings. This format is also common in older React web projects and Nuxt 2 applications.

JavaScript locale files export a plain object using CommonJS module.exports or ES module export default syntax. Keys map to string values or nested objects. Interpolation syntax depends on the consuming i18n library — typically double-brace variable names for vue-i18n or i18next. Comments can appear anywhere in the file using standard JavaScript syntax, unlike JSON.

Best practice: consider migrating from .js object format to JSON if starting a new project — JSON is more portable, supported by more tooling, and integrates directly with Language Monster's file sync. If you retain .js format, avoid dynamic expressions or computed values in locale objects as these cannot be statically extracted for translation. Language Monster supports the React Native JavaScript object format and processes the exported object structure.

Developer Localisation Guides

React & Next.js Localisation

Read More File Formats