decord/beta/source/modules/links/getLocalizedLink.tsx

18 lines
495 B
TypeScript
Raw Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 4732
// Function ID: 4733
// Name: getLocalizedLink
2026-10-07 22:43:51 +00:00
// Dependencies: [1126, 2]
// Exports: default
2026-10-12 16:32:48 +00:00
// Module 4732 (getLocalizedLink)
2026-10-07 22:43:51 +00:00
import intl from "intl" /* 1126 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/links/getLocalizedLink.tsx");
export default function getLocalizedLink(arg0) {
2026-10-01 14:13:23 +00:00
const str = intl.intl.currentLocale;
const formatted = str.toLowerCase();
return formatted in arg0 ? arg0[formatted] : arg0.default;
};