Skip to content

ui/i18n

ui/i18n

Import from @norbital-ai/ui/i18n

The kit's own chrome strings. English by default. The enclosing surface sets the viewer's text once.

i18n

UI_TEXT const

const UI_TEXT: { readonly close: "Close"; readonly expand: "Expand"; readonly collapse: "Collapse"; readonly resize: "Resize"; readonly save: "Save"; readonly saving: "Saving\u2026"; readonly requestApproval: "Request approval"; readonly cancel: "Cancel"; readonly clear: "Clear"; readonly create: "Create"; readonly add: "Add"; readonly remove: "Remove"; readonly none: "\u2014"; readonly yes: "Yes"; readonly no: "No"; readonly upload: "Upload files"; readonly uploading: "Uploading\u2026"; readonly useMyLocation: "Use my location"; readonly latitude: "Latitude"; readonly longitude: "Longitude"; readonly searc…

The kit's own chrome strings. English by default. The enclosing surface sets the viewer's text once.

Members

NameTypeDescription
close"Close"
expand"Expand"
collapse"Collapse"
resize"Resize"
save"Save"
saving"Saving…"
requestApproval"Request approval"
cancel"Cancel"
clear"Clear"
create"Create"
add"Add"
remove"Remove"
none"—"
yes"Yes"
no"No"
upload"Upload files"
uploading"Uploading…"
useMyLocation"Use my location"
latitude"Latitude"
longitude"Longitude"
searchAddress"Search address"
pickOnMap"Pick on map"
mapUnavailable"Map unavailable"
addressSearchUnavailable"Address search unavailable"
locationDenied"Location unavailable"
from"From"
to"To"
openEnded"Open-ended"
pending_approval"Submitted for approval"
conflict"This record changed since you opened it. Review and save again."
unknown"The outcome is not known yet. Check again before retrying."
running"Still working: this continues in the background."
select"Select…"
selectItem"Select"
searching"Searching…"
explore"Explore"
back"Back"
search"Search…"
noResults"No results"
optionsUnavailable"Could not load options"
required"Required"
invalid"Invalid value"
noAccess"No access"
redacted"Redacted"
not_found"Not found or no access"
recordUnavailable"Could not load"
field"Field"
kind"Kind"
optional"Optional"
useDefault"Use default"
fields"Fields"
today"Today"
previous"Previous"
next"Next"
more"+{n} more"
selectedCount"{n} selected"
day"Day"
week"Week"
month"Month"
year"Year"
openCalendar"Open calendar"
notifications"Notifications"
fullScreen"Full screen"
exitFullScreen"Exit full screen"
createdAt"Created {when} by {who}"
updatedAt"Updated {when} by {who}"
sync_owned"Managed by a sync"
owned_parent"An owned record cannot change its parent"
no_grant"Your permissions do not allow editing this field"
state_locked"Locked by the record’s current state"
owned_parent_locked"Locked by the owning record’s current state"
under_approval"Under approval: this request does not allow you to edit this record."
unsaved"Unsaved changes"
discard"Discard"
discardDraft"Discard your unsaved changes?"
copy"Copy"
copied"Copied"
addFiles"Add files"
addFile"Add file"
upToFiles"Up to {n} files"

Source: packages/ui/src/i18n.ts:2

UiTextKey type

type UiTextKey = keyof typeof UI_TEXT;

A key of the kit's own chrome strings.

Source: packages/ui/src/i18n.ts:140

ui_messages_for function

function ui_messages_for(locale: string): Readonly<Record<string, string>>

The kit's model-view messages in a locale. English uses the calling component's fallback.

Parameters

NameTypeDescription
localestring

Source: packages/ui/src/i18n.ts:641

ui_text_for function

function ui_text_for(locale: string): Partial<Record<UiTextKey, string>>

The kit's chrome in a locale. English uses the built-in defaults.

Parameters

NameTypeDescription
localestring

Source: packages/ui/src/i18n.ts:281