UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

18 lines (17 loc) 423 B
"use client"; import { useContext } from 'react'; import InputMaskedContext from "../InputMaskedContext.js"; export const useTranslation = () => { const { props, context } = useContext(InputMaskedContext); let { locale } = props; if (!locale && context !== null && context !== void 0 && context.locale) { locale = context.locale; } return locale; }; //# sourceMappingURL=useTranslation.js.map