jokes-bapak2/client/src/locale.ts

7 lines
206 B
TypeScript

/**
* 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 {}