feat: add i18n with type safety

This commit is contained in:
Sonny
2024-04-30 00:36:13 +02:00
committed by Sonny
parent 31f22d382e
commit 2cc490b611
32 changed files with 706 additions and 30 deletions

View File

@@ -5,15 +5,15 @@ const PATHS = {
GOOGLE: '/auth/google',
},
HOME: '/',
APP: '/app',
DASHBOARD: '/dashboard',
SHARED: '/shared',
PRIVACY: '/privacy',
TERMS: '/terms',
ADMIN: '/admin',
CATEGORY: {
CREATE: '/category/create',
EDIT: '/category/edit',
REMOVE: '/category/remove',
COLLECTION: {
CREATE: '/collections/create',
EDIT: '/collections/edit',
REMOVE: '/collections/remove',
},
LINK: {
CREATE: '/link/create',
@@ -21,14 +21,15 @@ const PATHS = {
REMOVE: '/link/remove',
},
API: {
CATEGORY: '/api/category',
COLLECTION: '/collections',
LINK: '/api/link',
},
NOT_FOUND: '/404',
SERVER_ERROR: '/505',
AUTHOR: 'https://www.sonny.dev/',
REPO_GITHUB: 'https://github.com/Sonny93/my-links',
EXTENSION: 'https://chromewebstore.google.com/detail/mylinks/agkmlplihacolkakgeccnbhphnepphma',
EXTENSION:
'https://chromewebstore.google.com/detail/mylinks/agkmlplihacolkakgeccnbhphnepphma',
} as const;
export default PATHS;