Translations POC

This commit is contained in:
Blipz 2026-03-13 14:22:02 +01:00
parent 3f9a7702d4
commit 0b69c1882b
13 changed files with 4853 additions and 543 deletions

1188
public/locales/en/lang.json Normal file

File diff suppressed because it is too large Load diff

1188
public/locales/fr/lang.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -220,6 +220,7 @@ oceanLayers
.attr("height", graphHeight);
document.addEventListener("DOMContentLoaded", async () => {
if (window.locale !== "en") await i18n;
if (!location.hostname) {
const wiki = "https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Run-FMG-locally";
alertMessage.innerHTML = /* html */ `Fantasy Map Generator cannot run serverless. Follow the <a href="${wiki}" target="_blank">instructions</a> on how you can easily run a local web-server`;