From af99c01a2bd964c0e5a8ca6d3da2d17e05247727 Mon Sep 17 00:00:00 2001 From: Rui Pinheiro Date: Fri, 27 Sep 2024 21:30:19 +0100 Subject: [PATCH] v1.13.2.0: Add polish translation, fix translations before i18n init --- CHANGELOG.md | 5 +++++ module.json | 2 +- src/shared | 2 +- src/ui/settings.js | 16 ++++++++-------- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a55b4a2..bab662c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.13.2.0 (2024-09-27) + +- Add Polish translation, thanks to Lionheart for the contribution! +- Ensure that non-english translations are correctly loaded at first use even if i18n hasn't initialised yet. This is something that broke during the 1.13.0.0 update. + # 1.13.1.0 (2024-09-25) - Ensure calling behaviour when a method has only listeners is consistent with libWrapper v1.12.15.0 and older. diff --git a/module.json b/module.json index be58d5f..5f4a4f4 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "name": "lib-wrapper", "title": "libWrapper", "description": "Library for wrapping core Foundry VTT methods, meant to improve compatibility between packages that wrap the same methods.", - "version": "1.13.1.0", + "version": "1.13.2.0", "authors": [{ "name": "Rui Pinheiro", "url": "https://github.com/ruipin" diff --git a/src/shared b/src/shared index 18e87c6..4ceb153 160000 --- a/src/shared +++ b/src/shared @@ -1 +1 @@ -Subproject commit 18e87c62351d50050a2133ef0bf4f4715fb8ff42 +Subproject commit 4ceb153e338c8361e6a7f79877b72d8b1b167918 diff --git a/src/ui/settings.js b/src/ui/settings.js index 4f4734d..b08895e 100644 --- a/src/ui/settings.js +++ b/src/ui/settings.js @@ -104,14 +104,14 @@ export class LibWrapperSettings extends FormApplication { // NOTE: Some choices removed as too much choice will just confuse users or make technical support more difficult. // For example, I don't want users to disable errors accidentally, and then ask for support without any error messages showing up on console. - 0 : i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.all`), - //[Log.TRACE .value]: i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.trace`), - [Log.DEBUG .value]: i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.debug`), - [Log.INFO .value]: i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.info`), - [Log.WARNING .value]: i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.warning`), - //[Log.ERROR .value]: i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.error`), - //[Log.CRITICAL.value]: i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.critical`), - //[Log.ALWAYS .value]: i18n.localize(`${PACKAGE_ID}.settings.log-verbosity.choices.always`), + 0 : `${PACKAGE_ID}.settings.log-verbosity.choices.all` , + //[Log.TRACE .value]: `${PACKAGE_ID}.settings.log-verbosity.choices.trace` , + [Log.DEBUG .value]: `${PACKAGE_ID}.settings.log-verbosity.choices.debug` , + [Log.INFO .value]: `${PACKAGE_ID}.settings.log-verbosity.choices.info` , + [Log.WARNING .value]: `${PACKAGE_ID}.settings.log-verbosity.choices.warning` , + //[Log.ERROR .value]: `${PACKAGE_ID}.settings.log-verbosity.choices.error` , + //[Log.CRITICAL.value]: `${PACKAGE_ID}.settings.log-verbosity.choices.critical`, + //[Log.ALWAYS .value]: `${PACKAGE_ID}.settings.log-verbosity.choices.always` , }, scope: 'client', config: true,