1.0.0 • Published 8 months ago

@jtorm/text-method v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
8 months ago

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;
  }
}
1.0.0

8 months ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago