aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-10-02 11:35:39 +0200
committerivarlovlie <git@ivarlovlie.no>2022-10-02 11:36:16 +0200
commit959306f9820f14f27dba56a42ffd1914f4e49de1 (patch)
treed338d67bef1bae1a3bca09eac24828d43a7f1107 /apps
parent70347722fa1f959a5b224ed43b6b64bf289f36cf (diff)
downloadgreatoffice-959306f9820f14f27dba56a42ffd1914f4e49de1.tar.xz
greatoffice-959306f9820f14f27dba56a42ffd1914f4e49de1.zip
refactor: Remove deprecated i18n strings
Diffstat (limited to 'apps')
-rw-r--r--apps/kit/src/lib/i18n/en/app/index.ts98
-rw-r--r--apps/kit/src/lib/i18n/i18n-types.ts615
-rw-r--r--apps/kit/src/lib/models/ISession.ts1
3 files changed, 3 insertions, 711 deletions
diff --git a/apps/kit/src/lib/i18n/en/app/index.ts b/apps/kit/src/lib/i18n/en/app/index.ts
index dd26be2..7cd05ee 100644
--- a/apps/kit/src/lib/i18n/en/app/index.ts
+++ b/apps/kit/src/lib/i18n/en/app/index.ts
@@ -1,101 +1,5 @@
import type { BaseTranslation } from '../../i18n-types'
-const en_app: BaseTranslation = {
- 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",
- },
-}
+const en_app: BaseTranslation = {}
export default en_app \ No newline at end of file
diff --git a/apps/kit/src/lib/i18n/i18n-types.ts b/apps/kit/src/lib/i18n/i18n-types.ts
index 2d76cef..8383731 100644
--- a/apps/kit/src/lib/i18n/i18n-types.ts
+++ b/apps/kit/src/lib/i18n/i18n-types.ts
@@ -179,316 +179,7 @@ type RootTranslation = {
}
}
-export type NamespaceAppTranslation = {
- nav: {
- /**
- * Home
- */
- home: string
- /**
- * Data
- */
- data: string
- /**
- * Settings
- */
- settings: string
- usermenu: {
- /**
- * Log out of your profile
- */
- logoutTitle: string
- /**
- * Administrate your profile
- */
- profileTitle: string
- /**
- * Toggle user menu
- */
- toggleTitle: string
- }
- }
- views: {
- dataTablePaginator: {
- /**
- * Go to previous page
- */
- goToPrevPage: string
- /**
- * Go to next page
- */
- goToNextPage: string
- }
- categoryForm: {
- /**
- * Default labels
- */
- defaultLabels: string
- /**
- * Search or create
- */
- labelsPlaceholder: string
- }
- settingsCategoriesTile: {
- /**
- * Are you sure you want to delete this category?
- This will delete all relating entries!
- */
- deleteAllConfirm: string
- /**
- * Edit entry
- */
- editEntry: string
- /**
- * Delete entry
- */
- deleteEntry: string
- /**
- * No categories
- */
- noCategories: string
- }
- settingsLabelsTile: {
- /**
- * Are you sure you want to delete this label?
- It will be removed from all related entries!
- */
- deleteAllConfirm: string
- /**
- * Edit label
- */
- editEntry: string
- /**
- * Delete label
- */
- deleteEntry: string
- /**
- * No labels
- */
- noLabels: string
- }
- entryForm: {
- /**
- * An error occured while updating the entry, try again soon.
- */
- entryUpdateError: string
- /**
- * An error occured while creating the entry, try again soon.
- */
- entryCreateError: string
- /**
- * Description is required
- */
- errDescriptionReq: string
- category: {
- /**
- * Search or create
- */
- placeholder: string
- /**
- * No categories available (Create a new one by searching for it)
- */
- noResults: string
- /**
- * Category is required
- */
- errisRequired: string
- /**
- * Reset category section
- */
- _logReset: string
- }
- labels: {
- /**
- * Search or create
- */
- placeholder: string
- /**
- * No labels available (Create a new one by searching for it)
- */
- noResults: string
- /**
- * Labels
- */
- labels: string
- /**
- * Reset labels section
- */
- _logReset: string
- }
- dateTime: {
- /**
- * Date is required
- */
- errDateIsRequired: string
- /**
- * From is required
- */
- errFromIsRequired: string
- /**
- * From can not be after To
- */
- errFromAfterTo: string
- /**
- * From and To can not be equal
- */
- errFromEqTo: string
- /**
- * To is required
- */
- errToIsRequired: string
- /**
- * To can not be before From
- */
- errToBeforeFrom: string
- /**
- * From
- */
- from: string
- /**
- * To
- */
- to: string
- /**
- * Date
- */
- date: string
- /**
- * Reset date time section
- */
- _logReset: string
- }
- }
- }
- data: {
- /**
- * Showing {entryCountString}, totalling in {totalHourMin}
- * @param {string} entryCountString
- * @param {string} totalHourMin
- */
- durationSummary: RequiredParams<'entryCountString' | 'totalHourMin'>
- /**
- * h
- */
- hourSingleChar: string
- /**
- * m
- */
- minSingleChar: string
- /**
- * entry
- */
- entry: string
- /**
- * entries
- */
- entries: string
- /**
- * Are you sure you want to delete this entry?
- */
- confirmDeleteEntry: string
- /**
- * Edit entry
- */
- editEntry: string
- /**
- * Date
- */
- date: string
- /**
- * From
- */
- from: string
- /**
- * Duration
- */
- duration: string
- /**
- * Category
- */
- category: string
- /**
- * Description
- */
- description: string
- /**
- * Loading
- */
- loading: string
- /**
- * No entries
- */
- noEntries: string
- /**
- * to
- */
- to: string
- /**
- * Use
- */
- use: string
- }
- home: {
- /**
- * Are you sure you want to delete this entry?
- */
- confirmDeleteEntry: string
- /**
- * New entry
- */
- newEntry: string
- /**
- * Edit entry
- */
- editEntry: string
- /**
- * Delete entry
- */
- deleteEntry: string
- /**
- * Logged time today
- */
- loggedTimeToday: string
- /**
- * {hours}h{minutes}m
- * @param {unknown} hours
- * @param {unknown} minutes
- */
- loggedTimeTodayString: RequiredParams<'hours' | 'minutes'>
- /**
- * Current time
- */
- currentTime: string
- /**
- * Loading
- */
- loading: string
- /**
- * Stopwatch
- */
- stopwatch: string
- /**
- * Today's entries
- */
- todayEntries: string
- /**
- * No entries today
- */
- noEntriesToday: string
- /**
- * Refresh today's entries
- */
- refreshTodayEntries: string
- /**
- * Category
- */
- category: string
- /**
- * Timespan
- */
- timespan: string
- }
-}
+export type NamespaceAppTranslation = {}
export type Namespaces =
| 'app'
@@ -661,310 +352,6 @@ export type TranslationFunctions = {
submitANewRequestBelow: () => LocalizedString
}
app: {
- nav: {
- /**
- * Home
- */
- home: () => LocalizedString
- /**
- * Data
- */
- data: () => LocalizedString
- /**
- * Settings
- */
- settings: () => LocalizedString
- usermenu: {
- /**
- * Log out of your profile
- */
- logoutTitle: () => LocalizedString
- /**
- * Administrate your profile
- */
- profileTitle: () => LocalizedString
- /**
- * Toggle user menu
- */
- toggleTitle: () => LocalizedString
- }
- }
- views: {
- dataTablePaginator: {
- /**
- * Go to previous page
- */
- goToPrevPage: () => LocalizedString
- /**
- * Go to next page
- */
- goToNextPage: () => LocalizedString
- }
- categoryForm: {
- /**
- * Default labels
- */
- defaultLabels: () => LocalizedString
- /**
- * Search or create
- */
- labelsPlaceholder: () => LocalizedString
- }
- settingsCategoriesTile: {
- /**
- * Are you sure you want to delete this category?
- This will delete all relating entries!
- */
- deleteAllConfirm: () => LocalizedString
- /**
- * Edit entry
- */
- editEntry: () => LocalizedString
- /**
- * Delete entry
- */
- deleteEntry: () => LocalizedString
- /**
- * No categories
- */
- noCategories: () => LocalizedString
- }
- settingsLabelsTile: {
- /**
- * Are you sure you want to delete this label?
- It will be removed from all related entries!
- */
- deleteAllConfirm: () => LocalizedString
- /**
- * Edit label
- */
- editEntry: () => LocalizedString
- /**
- * Delete label
- */
- deleteEntry: () => LocalizedString
- /**
- * No labels
- */
- noLabels: () => LocalizedString
- }
- entryForm: {
- /**
- * An error occured while updating the entry, try again soon.
- */
- entryUpdateError: () => LocalizedString
- /**
- * An error occured while creating the entry, try again soon.
- */
- entryCreateError: () => LocalizedString
- /**
- * Description is required
- */
- errDescriptionReq: () => LocalizedString
- category: {
- /**
- * Search or create
- */
- placeholder: () => LocalizedString
- /**
- * No categories available (Create a new one by searching for it)
- */
- noResults: () => LocalizedString
- /**
- * Category is required
- */
- errisRequired: () => LocalizedString
- /**
- * Reset category section
- */
- _logReset: () => LocalizedString
- }
- labels: {
- /**
- * Search or create
- */
- placeholder: () => LocalizedString
- /**
- * No labels available (Create a new one by searching for it)
- */
- noResults: () => LocalizedString
- /**
- * Labels
- */
- labels: () => LocalizedString
- /**
- * Reset labels section
- */
- _logReset: () => LocalizedString
- }
- dateTime: {
- /**
- * Date is required
- */
- errDateIsRequired: () => LocalizedString
- /**
- * From is required
- */
- errFromIsRequired: () => LocalizedString
- /**
- * From can not be after To
- */
- errFromAfterTo: () => LocalizedString
- /**
- * From and To can not be equal
- */
- errFromEqTo: () => LocalizedString
- /**
- * To is required
- */
- errToIsRequired: () => LocalizedString
- /**
- * To can not be before From
- */
- errToBeforeFrom: () => LocalizedString
- /**
- * From
- */
- from: () => LocalizedString
- /**
- * To
- */
- to: () => LocalizedString
- /**
- * Date
- */
- date: () => LocalizedString
- /**
- * Reset date time section
- */
- _logReset: () => LocalizedString
- }
- }
- }
- data: {
- /**
- * Showing {entryCountString}, totalling in {totalHourMin}
- */
- durationSummary: (arg: { entryCountString: string, totalHourMin: string }) => LocalizedString
- /**
- * h
- */
- hourSingleChar: () => LocalizedString
- /**
- * m
- */
- minSingleChar: () => LocalizedString
- /**
- * entry
- */
- entry: () => LocalizedString
- /**
- * entries
- */
- entries: () => LocalizedString
- /**
- * Are you sure you want to delete this entry?
- */
- confirmDeleteEntry: () => LocalizedString
- /**
- * Edit entry
- */
- editEntry: () => LocalizedString
- /**
- * Date
- */
- date: () => LocalizedString
- /**
- * From
- */
- from: () => LocalizedString
- /**
- * Duration
- */
- duration: () => LocalizedString
- /**
- * Category
- */
- category: () => LocalizedString
- /**
- * Description
- */
- description: () => LocalizedString
- /**
- * Loading
- */
- loading: () => LocalizedString
- /**
- * No entries
- */
- noEntries: () => LocalizedString
- /**
- * to
- */
- to: () => LocalizedString
- /**
- * Use
- */
- use: () => LocalizedString
- }
- home: {
- /**
- * Are you sure you want to delete this entry?
- */
- confirmDeleteEntry: () => LocalizedString
- /**
- * New entry
- */
- newEntry: () => LocalizedString
- /**
- * Edit entry
- */
- editEntry: () => LocalizedString
- /**
- * Delete entry
- */
- deleteEntry: () => LocalizedString
- /**
- * Logged time today
- */
- loggedTimeToday: () => LocalizedString
- /**
- * {hours}h{minutes}m
- */
- loggedTimeTodayString: (arg: { hours: unknown, minutes: unknown }) => LocalizedString
- /**
- * Current time
- */
- currentTime: () => LocalizedString
- /**
- * Loading
- */
- loading: () => LocalizedString
- /**
- * Stopwatch
- */
- stopwatch: () => LocalizedString
- /**
- * Today's entries
- */
- todayEntries: () => LocalizedString
- /**
- * No entries today
- */
- noEntriesToday: () => LocalizedString
- /**
- * Refresh today's entries
- */
- refreshTodayEntries: () => LocalizedString
- /**
- * Category
- */
- category: () => LocalizedString
- /**
- * Timespan
- */
- timespan: () => LocalizedString
- }
}
}
diff --git a/apps/kit/src/lib/models/ISession.ts b/apps/kit/src/lib/models/ISession.ts
index f7ed46b..7587145 100644
--- a/apps/kit/src/lib/models/ISession.ts
+++ b/apps/kit/src/lib/models/ISession.ts
@@ -1,6 +1,7 @@
export interface ISession {
profile: {
username: string,
+ displayName: string,
id: string,
},
lastChecked: number,