[bugfix] Use __dirname for locale import if available
[bugfix] Use __dirname for locale import if available

React native doesn't like relative require calls. So use __dirname and
replace relative requires with absolute ones. Fall back to relative
require if __dirname is not present (for whatever reason).

Fixes #5252 and #5214

PKRoma/moment,ze-pequeno/moment,PKRoma/moment,PKRoma/moment,ze-pequeno/moment,mj1856/moment,julionc/moment,moment/moment,mj1856/moment,julionc/moment,mj1856/moment,julionc/moment,ze-pequeno/moment,moment/moment,moment/moment