import localeEN from "./locales/locale-en.json";
import localeDE from "./locales/locale-de.json";

let AppTranslate = ($translateProvider) => {
  "ngInject";
  $translateProvider
  .translations("en", localeEN)
  .translations("de", localeDE)
  .useSanitizeValueStrategy("escape")
  .preferredLanguage("en");
};

export default AppTranslate;

import localeEN from "./locales/locale-en.json";
import localeDE from "./locales/locale-de.json";

let AppTranslate = ($translateProvider) => {
  "ngInject";
  $translateProvider
  .useSanitizeValueStrategy("escape")
  .translations("en", localeEN)
  .translations("de", localeDE)
  .fallbackLanguage("en")
  .registerAvailableLanguageKeys(["en", "de"], {
    "en_*": "en",
    "de_*": "de"
  })
  .determinePreferredLanguage();
};

export default AppTranslate;

Set fallback language and alternative keys
Set fallback language and alternative keys
