From f9337bbe280878c2a2d9d713873c4c06b54325cd Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Thu, 29 Sep 2022 00:28:33 +0800 Subject: refactor: !WIP Use i18n namespaces --- apps/kit/src/lib/i18n/en/index.ts | 151 +++----------------------------------- 1 file changed, 12 insertions(+), 139 deletions(-) (limited to 'apps/kit/src/lib/i18n/en/index.ts') diff --git a/apps/kit/src/lib/i18n/en/index.ts b/apps/kit/src/lib/i18n/en/index.ts index 6a0c3ac..4c1ad04 100644 --- a/apps/kit/src/lib/i18n/en/index.ts +++ b/apps/kit/src/lib/i18n/en/index.ts @@ -1,145 +1,18 @@ import type { BaseTranslation } from "../i18n-types"; const en: BaseTranslation = { - common: { - or: "Or", - logIn: "Log in", - password: "Password", - active: "Active", - reset: "Reset", - description: "Description", - save: "Save", - create: "Create", - archived: "Archived", - emailAddress: "Email address", - name: "Name", - color: "Color", - profile: "Profile", - logout: "Log out", - labels: "Labels", - categories: "Categories", - of: "{0} of {1}", - category: "Category", - isRequired: "{0} is required", - submit: "Submit", - send: "Send {0}", - request: "Request", - success: "Success", - tryAgainSoon: "Kindly try again soon", - unexpectedError: "An unexpected error occured", - }, - nav: { - home: "Home", - data: "Data", - settings: "Settings", - usermenu: { - logoutTitle: "Log out of your profile", - profileTitle: "Administrate your profile", - toggleTitle: "Toggle user menu", - } - }, - views: { - dataTablePaginator: { - goToPrevPage: "Go to previous page", - goToNextPage: "Go to next page", - }, - categoryForm: { - defaultLabels: "Default labels", - labelsPlaceholder: "Search or create" - }, - settingsCategoriesTile: { - deleteAllConfirm: "Are you sure you want to delete this category?\nThis will delete all relating entries!", - editEntry: "Edit entry", - deleteEntry: "Delete entry", - noCategories: "No categories", - }, - settingsLabelsTile: { - deleteAllConfirm: "Are you sure you want to delete this label?\nIt will be removed from all related entries!", - editEntry: "Edit label", - deleteEntry: "Delete label", - noLabels: "No labels", - }, - entryForm: { - entryUpdateError: "An error occured while updating the entry, try again soon.", - entryCreateError: "An error occured while creating the entry, try again soon.", - errDescriptionReq: "Description is required", - category: { - placeholder: "Search or create", - noResults: "No categories available (Create a new one by searching for it)", - errisRequired: "Category is required", - _logReset: "Reset category section" - }, - labels: { - placeholder: "Search or create", - noResults: "No labels available (Create a new one by searching for it)", - labels: "Labels", - _logReset: "Reset labels section" - }, - dateTime: { - errDateIsRequired: "Date is required", - errFromIsRequired: "From is required", - errFromAfterTo: "From can not be after To", - errFromEqTo: "From and To can not be equal", - errToIsRequired: "To is required", - errToBeforeFrom: "To can not be before From", - from: "From", - to: "To", - date: "Date", - _logReset: "Reset date time section" - } - } - }, - data: { - durationSummary: "Showing {entryCountString:string}, totalling in {totalHourMin:string}", - hourSingleChar: "h", - minSingleChar: "m", - entry: "entry", - entries: "entries", - confirmDeleteEntry: "Are you sure you want to delete this entry?", - editEntry: "Edit entry", - date: "Date", - from: "From", - duration: "Duration", - category: "Category", - description: "Description", - loading: "Loading", - noEntries: "No entries", - to: "to", - use: "Use", - }, - home: { - confirmDeleteEntry: "Are you sure you want to delete this entry?", - newEntry: "New entry", - editEntry: "Edit entry", - deleteEntry: "Delete entry", - loggedTimeToday: "Logged time today", - loggedTimeTodayString: "{hours}h{minutes}m", - currentTime: "Current time", - loading: "Loading", - stopwatch: "Stopwatch", - todayEntries: "Today's entries", - noEntriesToday: "No entries today", - refreshTodayEntries: "Refresh today's entries", - category: "Category", - timespan: "Timespan", - }, - messages: { - pageNotFound: "Page not found", - goToFrontpage: "Go to frontpage", - noInternet: "It seems like your device does not have a internet connection, please check your connection." - }, - login: { - loginToYourAccount: "Log in to your account", - createANewAccount: "create a new account", - password: "Password", - notMyComputer: "This is not my computer", - forgotPassword: "Forgot your password?", - }, - reset: { - resetPassword: "Request a password reset", - gotoLoginPage: "Go to login page", - requestSentMessage: "If we find your email address in our systems, you will receive an email with instructions on how to set a new password for your account." - } + or: "Or", + emailAddress: "Email address", + password: "Password", + pageNotFound: "Page not found", + noInternet: "It seems like your device does not have a internet connection, please check your connection.", + reset: "Reset", + of: "{0} of {1}", + isRequired: "{0} is required", + submit: "Submit", + success: "Success", + tryAgainSoon: "Try again soon", + unexpectedError: "An unexpected error occured", }; export default en; -- cgit v1.3