Performs localization of the plugin model. Translates entries such as command names, view names and other items.
Translatable items are indicated with a %id%
value.
The id
is the translation key that gets replaced with the localized value for the currently selected language.
Returns a copy of the plugin argument and does not modify the argument.
This is done to preserve the original %id%
values for subsequent invocations of this method.
This promise resolves when the cache has been cleaned up after starting the backend server. Once resolved, the service allows to cache localization files for plugins.