The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/components/contexts/TranslationContext.js

11 lines
261 B

import { createContext, useContext } from 'react';
const translate = function(key) {
return key;
};
translate.has = () => true;
export const TranslationContext = createContext(translate);
export const useTranslation = () => useContext(TranslationContext);