Translations:Manual:Messages API/161/en

This can be done using either a ResourceLoader module (most common) or an API query from JavaScript (rare).