Version 1.0 squash
This commit is contained in:
62
web/src/constants/ui-text.ts
Normal file
62
web/src/constants/ui-text.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* UI Text Constants
|
||||
*
|
||||
* Centralized location for all user-facing text strings in Bosnian.
|
||||
* Makes localization easier and reduces magic strings throughout the codebase.
|
||||
*/
|
||||
|
||||
/* Page titles displayed in header */
|
||||
export const PAGE_TITLES = {
|
||||
bulletin: "Obavještenja",
|
||||
directory: "Direktorij",
|
||||
navigation: "Navigacija",
|
||||
about: "Informacije",
|
||||
} as const;
|
||||
|
||||
/* Common loading messages */
|
||||
export const LOADING_MESSAGES = {
|
||||
notices: "Učitavanje obavještenja...",
|
||||
companies: "Učitavanje kompanija...",
|
||||
floorPlans: "Učitavanje planova spratova...",
|
||||
content: "Učitavanje sadržaja...",
|
||||
} as const;
|
||||
|
||||
/* Common error messages */
|
||||
export const ERROR_MESSAGES = {
|
||||
generic: "Došlo je do greške pri učitavanju.",
|
||||
} as const;
|
||||
|
||||
/* Empty state messages */
|
||||
export const EMPTY_MESSAGES = {
|
||||
noCompanies: "Nema kompanija koje odgovaraju kriterijumima pretraživanja.",
|
||||
noFloorPlan: "Plan sprata nije trenutno dostupan.",
|
||||
noContent: "Sadržaj trenutno nije dostupan.",
|
||||
} as const;
|
||||
|
||||
/* Section headers */
|
||||
export const SECTION_HEADERS = {
|
||||
expiredNotices: "Istekla obavještenja",
|
||||
absentCompanies: "Odsutne",
|
||||
} as const;
|
||||
|
||||
/* Filter button labels */
|
||||
export const FILTER_LABELS = {
|
||||
all: "Sve",
|
||||
present: "Prisutne",
|
||||
absent: "Odsutne",
|
||||
} as const;
|
||||
|
||||
/* Room and location labels */
|
||||
export const LOCATION_LABELS = {
|
||||
room: "Prostorija",
|
||||
occupied: "Zauzeto",
|
||||
available: "Dostupno",
|
||||
close: "Zatvori",
|
||||
} as const;
|
||||
|
||||
/* Notice card labels */
|
||||
export const NOTICE_LABELS = {
|
||||
posted: "Objavljeno",
|
||||
validUntil: "Važi do",
|
||||
expired: "Isteklo",
|
||||
} as const;
|
||||
Reference in New Issue
Block a user