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

18 lines
495 B
TypeScript
Raw Normal View History

2026-10-02 13:37:24 +00:00
// Module ID: 4454
// Function ID: 4455
// Name: getLocalizedLink
2026-10-02 13:37:24 +00:00
// Dependencies: [1127, 2]
// Exports: default
2026-10-02 13:37:24 +00:00
// Module 4454 (getLocalizedLink)
import intl from "intl" /* 1127 */;
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;
};