Add _loc compatibility for v13
This commit is contained in:
parent
66d2452d1d
commit
441930a5e5
2 changed files with 8 additions and 0 deletions
6
module/hooks/ready.mjs
Normal file
6
module/hooks/ready.mjs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
Hooks.on(`ready`, () => {
|
||||
// Remove with issue: Foundry/taf#52
|
||||
if (game.release.generation < 14 && globalThis._loc == null) {
|
||||
globalThis._loc = game.i18n.format.bind(game.i18n);
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue