1022767 use json l10n manifests

https://bugzilla.mozilla.org/show_bug.cgi?id=1022767
line 359~365 is the same as 350~356, please extract a function for it.