UNPKG

@daimo/pay

Version:

Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.

49 lines (46 loc) 1.38 kB
import arAE from './locales/ar-AE.js'; import caAD from './locales/ca-AD.js'; import eeEE from './locales/ee-EE.js'; import enUS from './locales/en-US.js'; import esES from './locales/es-ES.js'; import faIR from './locales/fa-IR.js'; import frFR from './locales/fr-FR.js'; import jaJP from './locales/ja-JP.js'; import ptBR from './locales/pt-BR.js'; import ruRU from './locales/ru-RU.js'; import trTR from './locales/tr-TR.js'; import viVN from './locales/vi-VN.js'; import zhCN from './locales/zh-CN.js'; const mergeWithEnglish = (locale) => ({ ...enUS, ...locale }); const getLocale = (lang) => { switch (lang) { case "ee-EE": return mergeWithEnglish(eeEE); case "ar-AE": return mergeWithEnglish(arAE); case "es-ES": return mergeWithEnglish(esES); case "fa-IR": return mergeWithEnglish(faIR); case "fr-FR": return mergeWithEnglish(frFR); case "ja-JP": return mergeWithEnglish(jaJP); case "pt-BR": return mergeWithEnglish(ptBR); case "ru-RU": return mergeWithEnglish(ruRU); case "zh-CN": return mergeWithEnglish(zhCN); case "ca-AD": return mergeWithEnglish(caAD); case "tr-TR": return mergeWithEnglish(trTR); case "vi-VN": return mergeWithEnglish(viVN); default: return enUS; } }; export { getLocale }; //# sourceMappingURL=index.js.map