jokes-bapak2/client/src/locale.ts

7 lines
206 B
TypeScript
Raw Normal View History

2021-07-09 16:43:26 +00:00
/**
* TODO: Check user locale, then determines whether they should go to english route or indonesian route.
*/
const getLanguage = () => navigator?.languages[0] || navigator?.language || 'en';
export {}