import { invalidateDictionaryCache } from "./dictionary-cache.js";
let _appDictionaryLoader = null;
function registerAppDictionaryLoader(loader) {
  _appDictionaryLoader = loader;
  invalidateDictionaryCache();
}
async function loadAppDictionary(locale) {
  if (!_appDictionaryLoader) return {};
  try {
    return await _appDictionaryLoader(locale);
  } catch {
    return {};
  }
}
export {
  loadAppDictionary,
  registerAppDictionaryLoader
};
//# sourceMappingURL=app-dictionaries.js.map
