Translations:OOUI/Using OOUI in MediaWiki/21/en

As above, you just need to ensure the $1 module (or a different one, as described above) is loaded before your code runs.