-
Notifications
You must be signed in to change notification settings - Fork 0
an i18n files lookup tool
License
marook/locator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
locator - an i18n files lookup tool 1) Introduction 2) Requirements 3) Usage 4) Custom Localization Keys 5) License ------------------------------------------------------------------------ Introduction locator is an emacs module for looking up keys or values in JSON i18n files as they are commonly used in angular and other web projects. The images in the screenshots directory show how it will look within emacs. ------------------------------------------------------------------------ Requirements You need the following in order to use locator: - emacs of course - helm Some esoteric projects may have more than one root directory. Some parts of locator won't work with such projects. ------------------------------------------------------------------------ Usage `M-x locator-find-entry` will ask you for the locale in which you want to find entries. If your files are named de.json or de-DE.json you can type 'de' here. ------------------------------------------------------------------------ Custom Localization Keys By default the keys for the localization entries are the joined keys from the lang json files. So given the following lang json example: { "a": { "b": "a label" } } The default localization entry key constructed for "a label" is "a.b". This behavior can be customized by exchanging the locator-key-builder variable with your own function. See the locator-key-builder documentation for more details. ------------------------------------------------------------------------ License See file COPYING.
About
an i18n files lookup tool
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published