1.0.0 • Published 1 year ago
@jtorm/text-method
Licence
GPL-3.0
Version
1.0.0
Deps
2
Size
2 kB
Vulns
0
Weekly
0
jTorm Text Method
Add text with multilangual abilities. It looks in the context.session object for a language setting, if not found then it looks in the config for the language setting. As a fallback it uses english (en). Language can be set in the c attribute for example:
jTormTextMethod.data.nl = {"Example title": "Voorbeeld titel", etc.}
Install
npm install @jtorm/text-method
Properties
Any key: value pair.
Example
Alias = t
body->insert {
h: '<p></p>';
m: 'a';
p->text(sampleText: 'Example title')->append {
h: sampleText;
}
}