17 lines
495 B
TypeScript
17 lines
495 B
TypeScript
// Module ID: 4491
|
|
// Function ID: 4492
|
|
// Name: getLocalizedLink
|
|
// Dependencies: [1126, 2]
|
|
// Exports: default
|
|
|
|
// Module 4491 (getLocalizedLink)
|
|
import intl from "intl" /* 1126 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const result = size.fileFinishedImporting("modules/links/getLocalizedLink.tsx");
|
|
|
|
export default function getLocalizedLink(arg0) {
|
|
const str = intl.intl.currentLocale;
|
|
const formatted = str.toLowerCase();
|
|
return formatted in arg0 ? arg0[formatted] : arg0.default;
|
|
};
|