mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-23 23:57:23 +01:00
Translations POC
This commit is contained in:
parent
3f9a7702d4
commit
0b69c1882b
13 changed files with 4853 additions and 543 deletions
1188
public/locales/en/lang.json
Normal file
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
1188
public/locales/fr/lang.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue