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

18 lines
495 B
TypeScript
Raw Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 4732
// Function ID: 4733
2026-07-20 16:05:17 +00:00
// Name: getLocalizedLink
2026-10-03 08:58:59 +00:00
// Dependencies: [1126, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-10 08:08:14 +00:00
// Module 4732 (getLocalizedLink)
2026-10-03 08:58:59 +00:00
import intl from "intl" /* 1126 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/links/getLocalizedLink.tsx");
2026-07-20 16:05:17 +00:00
export default function getLocalizedLink(arg0) {
2026-10-03 08:58:59 +00:00
const str = intl.intl.currentLocale;
const formatted = str.toLowerCase();
2026-07-20 16:05:17 +00:00
return formatted in arg0 ? arg0[formatted] : arg0.default;
};