Skip to content

Internationalization ​

Fresh supports multiple languages for its user interface. The editor automatically detects your system locale, but you can also set your preferred language manually.

Supported Languages ​

See the locales/ directory for the full list of supported languages. Each .json file represents a supported locale (e.g., en.json for English, es.json for Spanish, ja.json for Japanese).

Setting Your Language ​

You can configure your preferred language in ~/.config/fresh/config.json:

json
{
  "locale": "es"
}

Or use the Settings UI (Edit → Settings...) and navigate to the General section to select your language.

Translating Messages With Counts ​

A message that states a count ("Saved 1 file", "Saved 3 files") has one entry per plural form, named after its CLDR plural category:

json
"status.saved_files.one": "Saved %{count} file",
"status.saved_files.other": "Saved %{count} files"

Each locale lists the forms its language uses, plus other: Czech adds few, Russian and Ukrainian add few and many, and Japanese, Korean, Chinese, Thai and Vietnamese need only other.

Plugin Translations ​

Plugins can provide their own translations. Plugins that support i18n use your configured locale automatically. Translations are stored in .i18n.json files alongside the plugin.

See Also ​

  • Text Encoding - For file encoding support (UTF-8, GBK, Shift-JIS, EUC-KR, UTF-16, etc.)

Released under the Apache 2.0 License