UNPKG

@hi18n/react-context

Version:

Message internationalization meets immutability and type-safety - shared React context

9 lines (7 loc) 316 B
import React from "react"; /** * A {@link https://reactjs.org/docs/context.html React context} to pass down the current locale. * * It contains a list of {@link https://en.wikipedia.org/wiki/IETF_language_tag BCP 47 langauge tags}, concatenated by LF "\n". */ export const LocaleContext: React.Context<string>;