Add Handlebars helpers
This commit is contained in:
parent
06c5320786
commit
edd4e49f62
4 changed files with 87 additions and 0 deletions
11
module/handlebarHelpers/_index.mjs
Normal file
11
module/handlebarHelpers/_index.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { handlebarsLocalizer, localizer } from "../utils/Localizer.mjs";
|
||||
import { options } from "./options.mjs";
|
||||
|
||||
export default {
|
||||
// #region Complex
|
||||
"rc-i18n": handlebarsLocalizer,
|
||||
"rc-options": options,
|
||||
|
||||
// #region Simple
|
||||
"rc-empty-state": (v) => v ?? localizer(`RipCrypt.common.empty`),
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue