Get most of the Untyped item implemented and functioning
This commit is contained in:
parent
a383225b8c
commit
6a355e63c0
7 changed files with 180 additions and 37 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import { localizerConfig } from "../config.mjs";
|
||||
|
||||
export function localizer(key, args = {}, depth = 0) {
|
||||
if (key instanceof Handlebars.SafeString) key = key.toString();
|
||||
|
||||
/** @type {string} */
|
||||
let localized = game.i18n.format(key, args);
|
||||
const subkeys = localized.matchAll(localizerConfig.subKeyPattern);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue