Repository URL to install this package:
| 
      
        
        
        Version: 
        
         
          
          2.0.11-7  ▾
        
         | 
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const notion_intl_1 = require("notion-intl");
const koMessages = require("../i18n/ko_KR/messages.json");
function createIntlShape(locale = "en-US") {
    let messages = {};
    if (locale === "ko-KR") {
        messages = koMessages;
    }
    const cache = notion_intl_1.createIntlCache();
    const intl = notion_intl_1.createIntl({ locale: locale, defaultLocale: "en-US", messages }, cache);
    return intl;
}
exports.createIntlShape = createIntlShape;
function getNotionLocaleFromElectronLocale(electronLocale) {
    const localeMap = {
        ko: "ko-KR",
        en: "en-US",
    };
    return localeMap[electronLocale] || "en-US";
}
exports.getNotionLocaleFromElectronLocale = getNotionLocaleFromElectronLocale;
//# sourceMappingURL=localizationHelper.js.map