-
Notifications
You must be signed in to change notification settings - Fork 305
Locale Formats
Format | Read | Write | Annotations | Note |
---|---|---|---|---|
JSON | β | β | β | |
YAML | β | β | β | Comments will NOT be preserved* |
JSON5 | β | β | β | Comments will NOT be preserved* |
INI | β | β | β | Comments will NOT be preserved* |
properties | β | β | β | Comments will NOT be preserved* |
POT | β | β | β | |
JavaScript | β | β | β | Read-only |
TypeScript | β | β | β | Read-only |
PHP | β | β | β | Read-only |
* Due to the limitation of
yaml.dumps
(#196) andJSON5.stringify
(#177), comments in YAML and JSON5 will be OMITTED on any modification by this extension (editing, translating, etc). If you are using comments in your locale files, you can turn on read-only mode byi18n-ally.readonly
to prevent losing comments.
By default, formats support will be automatically enabled by the activated frameworks (e.g Laravel will enable php
support).
To manually choose enabled formats:
// other formats will be disabled regardless of the framework preference.
"i18n-ally.enabledParsers": ["js", "ts", "pot"]
π‘ From v2.0, formats other than
JSON
,YAML
andJSON5
would be disabled by default.
// Sort keys alphabetically when saving
// Only works for json and yaml
"i18n-ally.sortKeys": false,
// Locale files indentation size
"i18n-ally.indent": 2,
// Locale files tab style
"i18n-ally.tabStyle": "space"
// File encoding for reading and writing locale files.
// Set to "auto" to let it decide for you.
"i18n-ally.tabStyle": "utf-8"
Lokalise is the fastest growing language cloud technology made by developers, for developers.
As a collaborative productivity platform, it helps structure and automate the translation and localization process for any company in the world.
Learn more
πβπ¨ Review & Collaborate
πͺ¨ Hard-coded Strings Extraction
βοΈ Configurations
π Migration