Intl JavaScript

import {useIntl} from 'react-intl';
const mainFunc = () =>{
	const intlFunc = () =>{
    	const intl = useIntl(); \\or You can just use useIntl() directly, but that is a programming convention and makes the things easier
    	const retrievedIntlString = intl.formatMessage({ id: 'the identifier id from an file with the string(usually an .json)' });
      	return retrievedIntlString;
    }
    
    const intlString = intlFunc();
}
Stragen Horsecorn