This commit is contained in:
Yaode_owo 2024-10-19 04:12:52 -04:00
parent 4e80c8fc0c
commit a0093a8379

View file

@ -226,7 +226,7 @@ function parseMinecraftMessage(component) {
const withArgs = comp.with.map(arg => extractText(arg));
let usedReplacements = 0;
translateString = translateString.replace(/thing__placeholder__/g, 'thing__placeholderdefault__');
translateString = translateString.replace(/thing__placeholder__/g, 'default_thing__placeholder__');
translateString = translateString.replace(/%s/g, (match, offset, string) => {
if (offset > 0 && string[offset - 1] === '%') {
return 's';
@ -261,7 +261,7 @@ function parseMinecraftMessage(component) {
return formattedArg;
});
}
translateString = translateString.replace(/thing__placeholderdefault__/g, 'thing__placeholder__');
translateString = translateString.replace(/default_thing__placeholder__/g, 'thing__placeholder__');
}
if (DefaultMsg) {
@ -311,7 +311,7 @@ function parseMinecraftMessageNoColor(component) {
const withArgs = comp.with.map(arg => extractText(arg));
let usedReplacements = 0;
translateString = translateString.replace(/thing__placeholder__/g, 'thing__placeholderdefault__');
translateString = translateString.replace(/thing__placeholder__/g, 'default_thing__placeholder__');
translateString = translateString.replace(/%s/g, (match, offset, string) => {
if (offset > 0 && string[offset - 1] === '%') {
return 's';
@ -346,7 +346,7 @@ function parseMinecraftMessageNoColor(component) {
return formattedArg;
});
}
translateString = translateString.replace(/thing__placeholderdefault__/g, 'thing__placeholder__');
translateString = translateString.replace(/default_thing__placeholder__/g, 'thing__placeholder__');
}
if (DefaultMsg) {