Regen docs

This commit is contained in:
Pieter Vander Vennet 2022-04-03 03:49:09 +02:00
parent 7d255f88e6
commit 3edca23b90
8 changed files with 84 additions and 37 deletions

View file

@ -16,18 +16,17 @@ export default class Locale {
window.setLanguage = function (language: string) {
source.setData(language)
}
source.syncWith(
QueryParameters.GetQueryParameter("language", undefined, "The language to display mapcomplete in. Will be ignored in case a logged-in-user did set their language before. If the specified language does not exist, it will default to the first language in the theme."),
true
)
QueryParameters.GetBooleanQueryParameter("fs-translation-mode",false,"If set, will show the translation buttons")
.addCallbackAndRunD(tr => {
console.log("Query parameter for translation mode is", tr)
Locale.showLinkToWeblate.setData(Locale.showLinkToWeblate.data || tr);
})
}
source.syncWith(
QueryParameters.GetQueryParameter("language", undefined, "The language to display mapcomplete in. Will be ignored in case a logged-in-user did set their language before. If the specified language does not exist, it will default to the first language in the theme."),
true
)
QueryParameters.GetBooleanQueryParameter("fs-translation-mode",false,"If set, will show a translation button next to every string.")
.addCallbackAndRunD(tr => {
Locale.showLinkToWeblate.setData(Locale.showLinkToWeblate.data || tr);
})
return source;
}
}