added new langs

+added new lang: Arabic, Portugese, Vietnamese
+added display names for all langs
+added data-i18n= tags for translation
This commit is contained in:
deffcolony
2024-03-12 19:03:12 +01:00
parent 6b2374c405
commit b6c29f7129
14 changed files with 2509 additions and 20 deletions

View File

@ -335,7 +335,9 @@ export async function favsToHotswap() {
await Promise.allSettled(promises);
//helpful instruction message if no characters are favorited
if (count === 0) { container.html('<small><span><i class="fa-solid fa-star"></i> Favorite characters to add them to HotSwaps</span></small>'); }
if (count === 0) {
container.html('<small><span data-i18n="Favorite characters to add them to HotSwaps"><i class="fa-solid fa-star"></i> Favorite characters to add them to HotSwaps</span></small>');
}
//otherwise replace with fav'd characters
if (count > 0) {
container.replaceWith(newContainer);