mnasyrov / monento-locales

Localisation resources for Monento app. πŸ’¬

Home Page:https://monento.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monento Locales

Localisation resources for Monento – a cross-platform app for tracking personal finances.

You are welcome to contribute a new translation and fix mistakes in existent messages.

File Structure

Locale files are located under locales directory, example:

.i18n-editor-metadata
locale--comments.json
locale-en.json
locale-ru.json

Where:

  • .i18n-editor-metadata – a configuration file for i18n-editor.
  • locale--comments.json – the file contains comments and context details for translation terms.
  • locale-*.json – these files contain translated terms per a locale.

Editing Files

Locale files are plain JSON files and can be edited directly by a text editor or Github's online editor for quick fixes.

However it is more convenient to use i18n-editor – it is a cross-platform GUI editor running on Java 8:

  • Follow instructions and install at least 2.0.0-beta.1 version from its releases page.
  • Open the editor and import locales directory as a new project.

Note: Start the editor by java -jar i18n-editor.jar command in a terminal in case it cannot be launched by its binary files.

Guidelines

Messages

  • Message identifiers must begin with i18n. prefix.
  • Most of messages are single-line line string.
  • Some messages can contain new lines or HTML tags. These cases should be marked by comments.

Variables and pluralisation

MessageFormat.js library is used to pass variables into messages and to make pluralised variations of numerical values. Please take a look to Format Guide.

Note: Currently, value formatters of MessageFormat are not supported including date, duration, time and number.

Contributors

Please can add yourself to contributors list of package.json file while making changes. People from the list will be displayed by the application in an attribution section for the translations.

Supported fields:

  • name – required field
  • email – optional field
  • url – optional field

License

MIT

About

Localisation resources for Monento app. πŸ’¬

https://monento.com

License:MIT License