From 04845d6bbf615db1b5d76d7660f41d3764faae31 Mon Sep 17 00:00:00 2001 From: xenticore Date: Sat, 29 Mar 2025 00:00:52 -0400 Subject: [PATCH] l10n: translate ref --- src/content/utils/formatting.ts | 2 +- src/strings/en.js | 1 + src/strings/es.js | 1 + src/strings/ja.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/content/utils/formatting.ts b/src/content/utils/formatting.ts index 25083db..3ac4b9c 100644 --- a/src/content/utils/formatting.ts +++ b/src/content/utils/formatting.ts @@ -14,7 +14,7 @@ export function formatPrice(keys: number, metal: number, keyPrice: number, local if(keys > 0) { output += (formattedKeys == 1.0 ? $T("%@ key") : $T("%@ keys")).replace('%@', formattedKeys.toLocaleString(locale)) } else { - output += `${(+toFixed(metal, 2)).toLocaleString(locale)} ref` + output += $T("%@ ref").replace('%@', (+toFixed(metal, 2)).toLocaleString(locale)) } const currencyFormatter = new Intl.NumberFormat(locale, { minimumFractionDigits: 2, diff --git a/src/strings/en.js b/src/strings/en.js index 36dd116..83106e0 100644 --- a/src/strings/en.js +++ b/src/strings/en.js @@ -10,6 +10,7 @@ module.exports = { // Price strings "Data unavailable": "Data unavailable", // sourced from AppleGlot + "%@ ref": "%@ ref", "%@ key": "%@ key", "%@ keys": "%@ keys", diff --git a/src/strings/es.js b/src/strings/es.js index 788f147..edae345 100644 --- a/src/strings/es.js +++ b/src/strings/es.js @@ -10,6 +10,7 @@ module.exports = { // Price strings "Data unavailable": "Datos no disponibles", // sourced from AppleGlot + "%@ ref": "%@ ref", "%@ key": "%@ llave", "%@ keys": "%@ llaves", diff --git a/src/strings/ja.js b/src/strings/ja.js index 43315d1..2b8b43f 100644 --- a/src/strings/ja.js +++ b/src/strings/ja.js @@ -10,6 +10,7 @@ module.exports = { // Price strings "Data unavailable": "データがありません", // sourced from AppleGlot + "%@ ref": "%@精錬メタル", "%@ key": "%@ key", "%@ keys": "%@ keys",