summaryrefslogtreecommitdiffstats
path: root/toolkit/components/translations/bergamot-translator/moz.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /toolkit/components/translations/bergamot-translator/moz.yaml
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/translations/bergamot-translator/moz.yaml')
-rw-r--r--toolkit/components/translations/bergamot-translator/moz.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/toolkit/components/translations/bergamot-translator/moz.yaml b/toolkit/components/translations/bergamot-translator/moz.yaml
new file mode 100644
index 0000000000..23a4cc8c27
--- /dev/null
+++ b/toolkit/components/translations/bergamot-translator/moz.yaml
@@ -0,0 +1,51 @@
+# Version of this schema
+schema: 1
+
+bugzilla:
+ # Bugzilla product and component for this directory and subdirectories
+ product: Firefox
+ component: Translation
+
+# Document the source of externally hosted code
+origin:
+
+ # Short name of the package/library
+ name: bergamot-translator
+
+ description: The JavaScript emscripten worker to run Project Bergamot.
+
+ # Full URL for the package's homepage/etc
+ # Usually different from repository url
+ url: https://github.com/browsermt/bergamot-translator.git
+
+ # Human-readable identifier for this version/release
+ # Generally "version NNN", "tag SSS", "bookmark SSS"
+ release: v0.4.5
+
+ # Revision to pull in
+ # Must be a long or short commit SHA (long preferred)
+ revision: 05a87784973b6e1cc591f1f1a9a05c5873d9971e
+
+ # The package's license, where possible using the mnemonic from
+ # https://spdx.org/licenses/
+ # Multiple licenses can be specified (as a YAML list)
+ # A "LICENSE" file must exist containing the full license text
+ license: MPL-2.0
+
+ notes: >
+ The generated emscripten code contains many global variables. When updating
+ the code, paste it into the following function to protect the global scope.
+
+ ```
+ /* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+ function loadBergamot(Module) {
+ {insertCodeHere}
+ return Module;
+ }
+ ```
+
+ Then replace `console.log()` calls with `log()` calls so that logging preferences
+ are respected.