gnome-shell/js/extensions
Florian Müllner f59d523694 extensions: Add static defineTranslationFunctions() method
The method can be used to define a set of gettext functions that
call the corresponding method of an extension.

Those functions are very similar to the gettext functions we are
exporting, except that:

 - looking up the extension is delegated to the
   Extension/Preferences class
 - it is possible to avoid examining the stack
   when called with `import.meta.url`

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2838>
2023-07-30 10:29:44 +03:00
..
extension.js extensions: Add static defineTranslationFunctions() method 2023-07-30 10:29:44 +03:00
prefs.js extensions: Add static defineTranslationFunctions() method 2023-07-30 10:29:44 +03:00
sharedInternals.js extensions: Add static defineTranslationFunctions() method 2023-07-30 10:29:44 +03:00