forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jsscripting] Rename library injection parameter & Improve docs (open…
…hab#15547) * [jsscripting] Rename parameter useIncludedLibrary to injectionCachingEnabled (openhab#4) * [jsscripting] Improve README for cached library injection * Remove settings image Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
- Loading branch information
1 parent
01fb07f
commit ef76e29
Showing
6 changed files
with
42 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 11 additions & 8 deletions
19
.../org.openhab.automation.jsscripting/src/main/resources/OH-INF/i18n/jsscripting.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# add-on | ||
|
||
addon.jsscripting.name = JavaScript Scripting | ||
addon.jsscripting.description = This adds a JS (ECMAScript-2021) script engine. | ||
|
||
# add-on | ||
|
||
automation.config.jsscripting.injectionCachingEnabled.label = Cache openHAB JavaScript Library Injection | ||
automation.config.jsscripting.injectionCachingEnabled.description = Cache the openHAB JavaScript library injection for optimal performance.<br>Disable this option to allow loading the library from the local user configuration directory "automation/js/node_modules". Disabling caching may increase script loading times, especially on less powerful systems. | ||
automation.config.jsscripting.injectionCachingEnabled.option.true = Cache Library Injection | ||
automation.config.jsscripting.injectionCachingEnabled.option.false = Do Not Cache Library Injection | ||
automation.config.jsscripting.injectionEnabled.label = Use Built-in Global Variables | ||
automation.config.jsscripting.injectionEnabled.description = Import all variables from the openHAB JavaScript library into all rules for common services like items, things, actions, log, etc... <br> If disabled, the openHAB JavaScript library can be imported manually using "<i>require('openhab')</i>" | ||
automation.config.jsscripting.injectionEnabled.option.true = Use Built-in Variables | ||
automation.config.jsscripting.injectionEnabled.option.false = Do Not Use Built-in Variables | ||
automation.config.jsscripting.useIncludedLibrary.label = Use Included openHAB JavaScript Library | ||
automation.config.jsscripting.useIncludedLibrary.description = Use the included openHAB JavaScript library for optimal performance.<br> Disable this option to allow loading the library from the local user configuration directory "automation/js/node_modules". Using a user provided version of the library may increase script loading times, especially on less powerful systems. | ||
automation.config.jsscripting.useIncludedLibrary.option.true = Use Included Library | ||
automation.config.jsscripting.useIncludedLibrary.option.false = Do Not Use Included Library | ||
|
||
# service | ||
|
||
service.automation.jsscripting.label = JavaScript Scripting |