Translations:Manual:$wgResourceModules/4/en

Here is a basic example for usage in an extension.