# Internationalization (i18n)
# Providing translations via i18n.js
A plugin may provide an i18n.js module with additional translation strings for use within its components, or overrides for existing Ink-provided translations. Each language code maps to an object of translation key names to translated strings.
WARNING
Ink can't translate custom key names that it doesn't already provide in the default translations. Plugin authors who want translations for their custom strings must provide them explicitly, or else their strings will default to the current locale translation, if available.
# Built-in translation keys
i18n files should map a language code to an object of available string names. Translation strings are grouped below for organizational purposes, but the keys should be in one large mapping.
# Application
/** Application title. */
'ink': 'Ink',
/** Add a plugin to Ink. */
'install-plugins': 'Add Plugins',
/** Currently installing plugins to Ink. */
'installing-plugins': 'Installing...',# Common
/** Term for counted words. */
'words': 'word | words',
/** Filler text using all letters of alphabet. */
'sample-text': 'How quickly daft jumping zebras vex.',# Modals
/** Title for settings sidebar. */
'settings': 'Settings',
/** Account settings title. */
'account': 'Account',# Titlebar Greetings
/** Greeting between midnight-6am. */
'greeting-midnight': 'Good evening.',
/** Greeting between 6am-noon. */
'greeting-am': 'Good morning.',
/** Greeting between noon-6pm. */
'greeting-afternoon': 'Good afternoon.',
/** Greeting between 6pm-midnight. */
'greeting-pm': 'Good evening.',# API Entities
/** Name of `Project`-type entities. */
'projects': 'project | projects',
/** Plural name of `Chapter`-type entities. */
'chapters': 'chapter | chapters',
/** Name of `Scene`-type entities. */
'scene': 'Scene',
/** Plural name of Scene-type entities. */
'scenes': 'Scenes',
/** Name of `Scrap`-type entities. */
'scrap': 'Scrap',
/** Plural name of `Scrap`-type entities. */
'scraps': 'Scraps',
/** Name of `Task`-type entities. */
'task': 'Task',
/** Plural name of `Task`-type entities. */
'tasks': 'Tasks',
/** Name of `Goal`-type entities. */
'goal': 'Goal',
/** Plural name of `Goal`-type entities. */
'goals': 'Goals',