diff --git a/js/extensionPrefs/js/main.js b/js/extensionPrefs/js/main.js index aa325ea92..9dab3c392 100644 --- a/js/extensionPrefs/js/main.js +++ b/js/extensionPrefs/js/main.js @@ -2,12 +2,11 @@ imports.gi.versions.Gdk = '3.0'; imports.gi.versions.Gtk = '3.0'; -imports.package.initFormat(); - const Gettext = imports.gettext; +const Package = imports.package; const { Gdk, GLib, Gio, GObject, Gtk } = imports.gi; -const _ = Gettext.gettext; +Package.initFormat(); const ExtensionUtils = imports.misc.extensionUtils; @@ -782,6 +781,7 @@ function initEnvironment() { function main(argv) { initEnvironment(); + Package.initGettext(); new Application().run(argv); } diff --git a/lint/eslintrc-shell.yml b/lint/eslintrc-shell.yml index 77e0bd5f2..14617a810 100644 --- a/lint/eslintrc-shell.yml +++ b/lint/eslintrc-shell.yml @@ -17,7 +17,6 @@ rules: overrides: - files: js/** excludedFiles: - - js/extensionPrefs/** - js/portalHelper/* globals: global: readonly