1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-25 14:34:19 +00:00
pds-2021-g2-nest/nest_frontend/hooks/useStrings.js

10 lines
265 B
JavaScript
Raw Normal View History

import { useContext } from "react"
import ContextLanguage from "../contexts/ContextLanguage"
/**
2021-05-22 02:44:08 +00:00
* Hook to quickly use the `strings` attribute of {@link ContextLanguage}.
*/
export default function useStrings() {
return useContext(ContextLanguage).strings
}