diff --git a/.github/workflows/translations-upload.yml b/.github/workflows/translations-upload.yml index 221e30bddc..be3b3d714a 100644 --- a/.github/workflows/translations-upload.yml +++ b/.github/workflows/translations-upload.yml @@ -32,3 +32,6 @@ jobs: upload_translations: false download_translations: false + - name: crowdin-action + uses: crowdin/github-action@v1.15.2 + \ No newline at end of file diff --git a/web_configurator_crossconfigurator2.js b/web_configurator_crossconfigurator2.js new file mode 100644 index 0000000000..a673a56db4 --- /dev/null +++ b/web_configurator_crossconfigurator2.js @@ -0,0 +1,16 @@ +import PresetsRepoIndexed from "./PresetsRepoIndexed"; + +export default class PresetsWebsiteRepo extends PresetsRepoIndexed { + constructor(url, official, name) { + let correctUrl = url.trim(); + + if (!correctUrl.endsWith("/")) { + correctUrl += "/"; + } + + const urlRaw = correctUrl; + const urlViewOnline = correctUrl; + + super(urlRaw, urlViewOnline, official, name); + } + } \ No newline at end of file