Skip to content

Commit 481ab86

Browse files
committed
feat: prepare 13.1.0
1 parent 5883753 commit 481ab86

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## Unreleased
44

5+
[13.1.0] - 2025-10-08
6+
7+
### Added
8+
9+
- New option to ignore empty translations.
10+
- Process items mapping in adventures exporter.
11+
12+
### Removed
13+
14+
- Remove the `autoRegisterBabel` option in generated module.
15+
516
[13.0.0] - 2025-06-07
617

718
### Added
@@ -103,7 +114,9 @@
103114

104115
- Initial version of the module.
105116

106-
[Unreleased]: https://github.com/DjLeChuck/foundryvtt-babele-translation-files-generator/compare/13.0.0...main
117+
[Unreleased]: https://github.com/DjLeChuck/foundryvtt-babele-translation-files-generator/compare/13.1.0...main
118+
119+
[13.1.0]: https://github.com/DjLeChuck/foundryvtt-babele-translation-files-generator/compare/13.0.0...13.1.0
107120

108121
[13.0.0]: https://github.com/DjLeChuck/foundryvtt-babele-translation-files-generator/compare/12.2.2...13.0.0
109122

_module_tpl/register.js

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
const MODULE_ID = 'your-module-id'; // Change this ID!
22

33
// No need to change the code below this line, but it’s your module so do it if you want!
4-
5-
Hooks.on('init', () => {
6-
game.settings.register(MODULE_ID, 'autoRegisterBabel', {
7-
name: 'Automatically activate translation via Babele',
8-
hint: 'Automatically implements Babele translations without needing to point to the directory containing the translations.',
9-
scope: 'world',
10-
config: true,
11-
default: true,
12-
type: Boolean,
13-
requiresReload: true,
4+
Hooks.once('babele.init', (babele) => {
5+
babele.register({
6+
module: MODULE_ID,
7+
lang: '##LOCALE##',
8+
dir: 'compendium/##LOCALE##',
149
});
15-
16-
if (game.settings.get(MODULE_ID, 'autoRegisterBabel')) {
17-
Hooks.once('babele.init', (babele) => {
18-
babele.register({
19-
module: MODULE_ID,
20-
lang: '##LOCALE##',
21-
dir: 'compendium/##LOCALE##',
22-
});
23-
});
24-
}
2510
});

0 commit comments

Comments
 (0)