/JsonL18nResourcesEditor

Sublime Text 3 plugin for editing localization/internationalization resources in JSON format

Primary LanguagePythonMIT LicenseMIT

#Json L18n Resources Editor Sublime Text 3 plugin for editing localization internationalization resources JSON. (the package title says L18n which kind of mixing 2 terms l10n and i18n.)

##Description

This package allows to edit localization/internationalization resources stored in JSON files. For example: resources.json resources.en-us.json resources.en-gb.json

Editor window

##Installation

  • Using Package Control Ctrl+Shift+P -> "Install Package" then type JsonL18nResourcesEditor and press enter
  • Clone the repository or download ZIP and extract to the JsonL18nResourcesEditor directory in your Sublime 'Packages' folder ( menu "Preferences"->"Browse Packages" )

##Usage

Sidebar context menu Tab context menu

  • Right click on one of any file from sequence of JSON resources files in sidebar or in its tab if it's open and is currently selected. ( Sequence of JSON resources is a number of JSON files located in the same directory with similar names i.e. resources.json, resources.en-us.json, resources.en-gb.json )
  • Select "Edit L18n resource" in context menu.
  • Edit resources as JSON strings in opened window.
  • Use TAB and SHIFT+TAB to shitch between languages

Multiple rows strings editor

If you need to make a multiline string which should contain "\n" symbols just press CTRL+Enter to enter into multiline editor there to make new line use SHIFT+Enter, and to apply changes just hit Enter

Note that each value should be a proper single line JSON string. All special chars must be escaped. Resulting saved files will be pretty-print-formatted.

##P.S.

Feel free to post issues

##Changes ###1.2.1 - 1.2.3:

  • bugfix

###1.2.0:

  • added jump to next lang resource by tab press and previous by shift+tab
  • added multiline strings editing by CTRL+Enter
  • row adding fixed

###1.1.1:

  • bugfix

###1.1.0:

  • added settings
  • added tab content command

###1.0.0:

  • fixed new row creation
  • fixed small bugs