You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the semantic tags are hard coded into semantics.js along with the translations in the i18n asset. Not only would this need to be (manually?) synchronized with the core, but it also prevents the ability to add additional semantic tags on the fly, a feature that currently doesn't exist, but can be done in the future. I have implemented such a feature in the jruby library, and perhaps one day it can be merged into core.
Your suggestion
Create REST endpoints in core for providing the list of semantic tags + labels + relevant locales e.g. /semantics//semantics/locale_code to replace the current hard coded list.
It will also get tag synonyms and descriptions
The text was updated successfully, but these errors were encountered:
)
Supersedes #1850.
Closes#1822.
Depends on openhab/openhab-core#3559 (already
merged now).
Adding custom semantic tags is now possible:
openhab/openhab-core#3519.
This PR loads the Semantic tags when MainUI is loaded the first time and
stores them in Vuex.
This allows the removal of the hard-coded Semantic tags and the
translations from the assets and therefore makes the initial JS smaller.
--
Signed-off-by: Florian Hotze <[email protected]>
The problem
Currently the semantic tags are hard coded into semantics.js along with the translations in the i18n asset. Not only would this need to be (manually?) synchronized with the core, but it also prevents the ability to add additional semantic tags on the fly, a feature that currently doesn't exist, but can be done in the future. I have implemented such a feature in the jruby library, and perhaps one day it can be merged into core.
Your suggestion
Create REST endpoints in core for providing the list of semantic tags + labels + relevant locales e.g.
/semantics/
/semantics/locale_code
to replace the current hard coded list.It will also get tag synonyms and descriptions
The text was updated successfully, but these errors were encountered: