initial production version
This commit is contained in:
93
src/lib/i18n/translations/da.ts
Normal file
93
src/lib/i18n/translations/da.ts
Normal file
@@ -0,0 +1,93 @@
|
||||
import type { Translation } from './en';
|
||||
|
||||
// Danish translations - ADD YOUR TRANSLATIONS HERE
|
||||
export const da: Translation = {
|
||||
// Navigation
|
||||
nav: {
|
||||
dashboard: 'Dashboard' // TODO: Add Danish translation
|
||||
},
|
||||
|
||||
// Dashboard
|
||||
dashboard: {
|
||||
myWishlists: 'My Wishlists', // TODO: Add Danish translation
|
||||
myWishlistsDescription: 'Wishlists you own and manage', // TODO: Add Danish translation
|
||||
savedWishlists: 'Saved Wishlists', // TODO: Add Danish translation
|
||||
savedWishlistsDescription: "Wishlists you're following", // TODO: Add Danish translation
|
||||
createNew: '+ Create New', // TODO: Add Danish translation
|
||||
manage: 'Manage', // TODO: Add Danish translation
|
||||
copyLink: 'Copy Link', // TODO: Add Danish translation
|
||||
viewWishlist: 'View Wishlist', // TODO: Add Danish translation
|
||||
unsave: 'Unsave', // TODO: Add Danish translation
|
||||
emptyWishlists: "You haven't created any wishlists yet.", // TODO: Add Danish translation
|
||||
emptyWishlistsAction: 'Create Your First Wishlist', // TODO: Add Danish translation
|
||||
emptySavedWishlists: "You haven't saved any wishlists yet.", // TODO: Add Danish translation
|
||||
emptySavedWishlistsDescription: "When viewing someone's wishlist, you can save it to easily find it later.", // TODO: Add Danish translation
|
||||
by: 'by', // TODO: Add Danish translation
|
||||
ends: 'Ends' // TODO: Add Danish translation
|
||||
},
|
||||
|
||||
// Wishlist
|
||||
wishlist: {
|
||||
title: 'Wishlist', // TODO: Add Danish translation
|
||||
addItem: 'Add Item', // TODO: Add Danish translation
|
||||
editItem: 'Edit Item', // TODO: Add Danish translation
|
||||
deleteItem: 'Delete Item', // TODO: Add Danish translation
|
||||
reserve: 'Reserve', // TODO: Add Danish translation
|
||||
unreserve: 'Unreserve', // TODO: Add Danish translation
|
||||
reserved: 'Reserved', // TODO: Add Danish translation
|
||||
save: 'Save', // TODO: Add Danish translation
|
||||
saveWishlist: 'Save Wishlist', // TODO: Add Danish translation
|
||||
share: 'Share', // TODO: Add Danish translation
|
||||
edit: 'Edit', // TODO: Add Danish translation
|
||||
back: 'Back', // TODO: Add Danish translation
|
||||
noItems: 'No items yet', // TODO: Add Danish translation
|
||||
addFirstItem: 'Add your first item' // TODO: Add Danish translation
|
||||
},
|
||||
|
||||
// Forms
|
||||
form: {
|
||||
title: 'Title', // TODO: Add Danish translation
|
||||
description: 'Description', // TODO: Add Danish translation
|
||||
price: 'Price', // TODO: Add Danish translation
|
||||
url: 'URL', // TODO: Add Danish translation
|
||||
image: 'Image', // TODO: Add Danish translation
|
||||
submit: 'Submit', // TODO: Add Danish translation
|
||||
cancel: 'Cancel', // TODO: Add Danish translation
|
||||
save: 'Save', // TODO: Add Danish translation
|
||||
delete: 'Delete', // TODO: Add Danish translation
|
||||
email: 'Email', // TODO: Add Danish translation
|
||||
password: 'Password', // TODO: Add Danish translation
|
||||
name: 'Name', // TODO: Add Danish translation
|
||||
username: 'Username' // TODO: Add Danish translation
|
||||
},
|
||||
|
||||
// Auth
|
||||
auth: {
|
||||
signIn: 'Sign In', // TODO: Add Danish translation
|
||||
signUp: 'Sign Up', // TODO: Add Danish translation
|
||||
signOut: 'Sign Out', // TODO: Add Danish translation
|
||||
welcome: 'Welcome', // TODO: Add Danish translation
|
||||
createAccount: 'Create Account', // TODO: Add Danish translation
|
||||
alreadyHaveAccount: 'Already have an account?', // TODO: Add Danish translation
|
||||
dontHaveAccount: "Don't have an account?" // TODO: Add Danish translation
|
||||
},
|
||||
|
||||
// Common
|
||||
common: {
|
||||
loading: 'Loading...', // TODO: Add Danish translation
|
||||
error: 'Error', // TODO: Add Danish translation
|
||||
success: 'Success', // TODO: Add Danish translation
|
||||
confirm: 'Confirm', // TODO: Add Danish translation
|
||||
close: 'Close', // TODO: Add Danish translation
|
||||
or: 'or', // TODO: Add Danish translation
|
||||
and: 'and' // TODO: Add Danish translation
|
||||
},
|
||||
|
||||
// Date formatting
|
||||
date: {
|
||||
format: {
|
||||
short: 'da-DK',
|
||||
long: 'da-DK'
|
||||
}
|
||||
}
|
||||
};
|
||||
168
src/lib/i18n/translations/en.ts
Normal file
168
src/lib/i18n/translations/en.ts
Normal file
@@ -0,0 +1,168 @@
|
||||
export const en = {
|
||||
// Navigation
|
||||
nav: {
|
||||
dashboard: 'Dashboard'
|
||||
},
|
||||
|
||||
// Dashboard
|
||||
dashboard: {
|
||||
myWishlists: 'My Wishlists',
|
||||
myWishlistsDescription: 'Wishlists you own and manage',
|
||||
savedWishlists: 'Saved Wishlists',
|
||||
savedWishlistsDescription: "Wishlists you're following",
|
||||
createNew: '+ Create New',
|
||||
manage: 'Manage',
|
||||
copyLink: 'Copy Link',
|
||||
viewWishlist: 'View Wishlist',
|
||||
unsave: 'Unsave',
|
||||
emptyWishlists: "You haven't created any wishlists yet.",
|
||||
emptyWishlistsAction: 'Create Your First Wishlist',
|
||||
emptySavedWishlists: "You haven't saved any wishlists yet.",
|
||||
emptySavedWishlistsDescription: "When viewing someone's wishlist, you can save it to easily find it later.",
|
||||
by: 'by',
|
||||
ends: 'Ends'
|
||||
},
|
||||
|
||||
// Wishlist
|
||||
wishlist: {
|
||||
title: 'Wishlist',
|
||||
addItem: 'Add Item',
|
||||
editItem: 'Edit Item',
|
||||
deleteItem: 'Delete Item',
|
||||
reserve: 'Reserve',
|
||||
unreserve: 'Unreserve',
|
||||
reserved: 'Reserved',
|
||||
save: 'Save',
|
||||
saveWishlist: 'Save Wishlist',
|
||||
share: 'Share',
|
||||
edit: 'Edit',
|
||||
back: 'Back',
|
||||
noItems: 'No items yet',
|
||||
addFirstItem: 'Add your first item'
|
||||
},
|
||||
|
||||
// Forms
|
||||
form: {
|
||||
title: 'Title',
|
||||
description: 'Description',
|
||||
price: 'Price',
|
||||
url: 'URL',
|
||||
image: 'Image',
|
||||
submit: 'Submit',
|
||||
cancel: 'Cancel',
|
||||
save: 'Save',
|
||||
delete: 'Delete',
|
||||
email: 'Email',
|
||||
password: 'Password',
|
||||
name: 'Name',
|
||||
username: 'Username'
|
||||
},
|
||||
|
||||
// Auth
|
||||
auth: {
|
||||
signIn: 'Sign In',
|
||||
signUp: 'Sign Up',
|
||||
signOut: 'Sign Out',
|
||||
welcome: 'Welcome',
|
||||
createAccount: 'Create Account',
|
||||
alreadyHaveAccount: 'Already have an account?',
|
||||
dontHaveAccount: "Don't have an account?"
|
||||
},
|
||||
|
||||
// Common
|
||||
common: {
|
||||
loading: 'Loading...',
|
||||
error: 'Error',
|
||||
success: 'Success',
|
||||
confirm: 'Confirm',
|
||||
close: 'Close',
|
||||
or: 'or',
|
||||
and: 'and'
|
||||
},
|
||||
|
||||
// Date formatting
|
||||
date: {
|
||||
format: {
|
||||
short: 'en-US',
|
||||
long: 'en-US'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export type Translation = {
|
||||
nav: {
|
||||
dashboard: string;
|
||||
};
|
||||
dashboard: {
|
||||
myWishlists: string;
|
||||
myWishlistsDescription: string;
|
||||
savedWishlists: string;
|
||||
savedWishlistsDescription: string;
|
||||
createNew: string;
|
||||
manage: string;
|
||||
copyLink: string;
|
||||
viewWishlist: string;
|
||||
unsave: string;
|
||||
emptyWishlists: string;
|
||||
emptyWishlistsAction: string;
|
||||
emptySavedWishlists: string;
|
||||
emptySavedWishlistsDescription: string;
|
||||
by: string;
|
||||
ends: string;
|
||||
};
|
||||
wishlist: {
|
||||
title: string;
|
||||
addItem: string;
|
||||
editItem: string;
|
||||
deleteItem: string;
|
||||
reserve: string;
|
||||
unreserve: string;
|
||||
reserved: string;
|
||||
save: string;
|
||||
saveWishlist: string;
|
||||
share: string;
|
||||
edit: string;
|
||||
back: string;
|
||||
noItems: string;
|
||||
addFirstItem: string;
|
||||
};
|
||||
form: {
|
||||
title: string;
|
||||
description: string;
|
||||
price: string;
|
||||
url: string;
|
||||
image: string;
|
||||
submit: string;
|
||||
cancel: string;
|
||||
save: string;
|
||||
delete: string;
|
||||
email: string;
|
||||
password: string;
|
||||
name: string;
|
||||
username: string;
|
||||
};
|
||||
auth: {
|
||||
signIn: string;
|
||||
signUp: string;
|
||||
signOut: string;
|
||||
welcome: string;
|
||||
createAccount: string;
|
||||
alreadyHaveAccount: string;
|
||||
dontHaveAccount: string;
|
||||
};
|
||||
common: {
|
||||
loading: string;
|
||||
error: string;
|
||||
success: string;
|
||||
confirm: string;
|
||||
close: string;
|
||||
or: string;
|
||||
and: string;
|
||||
};
|
||||
date: {
|
||||
format: {
|
||||
short: string;
|
||||
long: string;
|
||||
};
|
||||
};
|
||||
};
|
||||
15
src/lib/i18n/translations/index.ts
Normal file
15
src/lib/i18n/translations/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { en } from './en';
|
||||
import { da } from './da';
|
||||
import type { Translation } from './en';
|
||||
|
||||
export const translations: Record<string, Translation> = {
|
||||
en,
|
||||
da
|
||||
};
|
||||
|
||||
export const languages = [
|
||||
{ code: 'en', name: 'English' },
|
||||
{ code: 'da', name: 'Dansk' }
|
||||
] as const;
|
||||
|
||||
export type LanguageCode = 'en' | 'da';
|
||||
Reference in New Issue
Block a user