import strings from "../locales/locales";

/**
 * Returns localized strings based on 'locale' setting
 */
export function localizeStrings(state, props) {
  var lang = state.settings.locale || "en";
  strings.setLanguage(lang);
  return strings;
};

import strings from "../locales/locales";

/**
 * Returns localized strings based on 'locale' setting
 */
export function localizeStrings(state, props) {
  var lang = state.locale || state.settings.locale || "en";
  strings.setLanguage(lang);
  return strings;
};

Set the selector to look for a dynamically-set locale first, then the setting, then default to English
Set the selector to look for a dynamically-set locale first, then the setting, then default to English
