mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
fix(i18n): add missing translation keys, update lang/locale logic
This commit is contained in:
8
client/utils/getCookie.ts
Normal file
8
client/utils/getCookie.ts
Normal file
@ -0,0 +1,8 @@
|
||||
export const getCookie = (name: string): string | undefined => {
|
||||
const value = `; ${document.cookie}`;
|
||||
const parts = value.split(`; ${name}=`);
|
||||
|
||||
if (parts.length === 2) {
|
||||
return parts.at(-1);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user