Update mozL10n API usage in shared

https://bugzilla.mozilla.org/show_bug.cgi?id=1041403