/**
 * mSupply Mobile
 * Sustainable Solutions (NZ) Ltd. 2019
 */

import {
  authStrings,
  buttonStrings,
  generalStrings,
  modalStrings,
  navStrings,
  pageInfoStrings,
  programStrings,
  syncStrings,
  tableStrings,
} from './index';

export function setCurrentLanguage(language) {
  authStrings.setLanguage(language);
  buttonStrings.setLanguage(language);
  generalStrings.setLanguage(language);
  modalStrings.setLanguage(language);
  navStrings.setLanguage(language);
  pageInfoStrings.setLanguage(language);
  tableStrings.setLanguage(language);
  syncStrings.setLanguage(language);
  programStrings.setLanguage(language);
}

export default setCurrentLanguage;

@@ -58,16 +58,127 @@
 2019%0A */
+%0Aimport moment from 'moment';%0Aimport french from 'moment/locale/fr';%0Aimport english from 'moment/locale/en-nz';
 %0A%0Aimport
@@ -332,24 +332,259 @@
 gs,%0A
-%7D from './index'
+  LANGUAGE_CODES,%0A%7D from './index';%0A%0Aconst DATE_CONFIGS = %7B%0A  DEFAULT: english,%0A  %5BLANGUAGE_CODES.FRENCH%5D: french,%0A%7D;%0A%0Aexport const setDateLocale = languageCode =%3E%0A  moment.updateLocale(languageCode, DATE_CONFIGS%5BlanguageCode%5D %7C%7C DATE_CONFIGS.DEFAULT)
 ;%0A%0Ae

Add utilities for dates in localization