UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

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