@drone1/alt 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,15 +69,6 @@ Note that output files can be lower-cased if you pass the ``--normalize-output-f
|
|
|
69
69
|
ALT CLI itself has been localized so you can use it many languages. For non-English languages, you can set the display language with the `ALT_LANGUAGE` environment variable. Please feel free to submit
|
|
70
70
|
an issue or a PR if you'd like to add another language.
|
|
71
71
|
|
|
72
|
-
## Rules
|
|
73
|
-
Translation will occur for a given target language & key if any of the following are true:
|
|
74
|
-
* The reference value was modified and translation has not yet occurred for the given language/key
|
|
75
|
-
* If a context value for the given target language/key is found and has been modified.
|
|
76
|
-
* The `--force` flag is used
|
|
77
|
-
|
|
78
|
-
Translation will _not_ occur if `alt` detects that the given value in the target language file has been manually modified. If you modify an output value manually and want it to be re-translated
|
|
79
|
-
later, you can just delete that key/value pair from the given file.
|
|
80
|
-
|
|
81
72
|
## Config file
|
|
82
73
|
[_optional_] You can create a config file. By default, `ALT` will search the output directory for `config.json`, but you can specify a path directly using
|
|
83
74
|
`--config-file`.
|
|
@@ -222,6 +213,15 @@ Internally, there is currently nothing in the prompt about this. I've tested wit
|
|
|
222
213
|
|
|
223
214
|
Please submit an issue if it causes you any trouble.
|
|
224
215
|
|
|
216
|
+
## Rules
|
|
217
|
+
Translation will occur for a given target language & key if any of the following are true:
|
|
218
|
+
* The reference value was modified and translation has not yet occurred for the given language/key
|
|
219
|
+
* If a context value for the given target language/key is found and has been modified.
|
|
220
|
+
* The `--force` flag is used
|
|
221
|
+
|
|
222
|
+
Translation will _not_ occur if `alt` detects that the given value in the target language file has been manually modified. If you modify an output value manually and want it to be re-translated
|
|
223
|
+
later, you can just delete that key/value pair from the given file.
|
|
224
|
+
|
|
225
225
|
## Additional notes
|
|
226
226
|
### Delayed vs. realtime writes
|
|
227
227
|
By default, `alt` will not write to disk until the tool is shutting down (including SIGTERM – yes, `Ctrl+C` is safe).
|