Interface translations
⋯
NesraI18nProvider supplies translations for the English messages used by selected Nesra UI
components. Import it from @nesra/ui/i18n and place it above the components you want to translate.
import { NesraI18nProvider } from "@nesra/ui/i18n";
<NesraI18nProvider messages={{ "Close navigation": "Tutup navigasi" }}> <App /></NesraI18nProvider>;The messages prop accepts partial translations keyed by the English source text. Untranslated
messages keep their English text. Templates use {label}, {level}, {parent}, and {fileName} placeholders.
Pass the complete translated sentence for each template.
Message keys
Section titled “Message keys”| English source text | Notes |
|---|---|
Close navigation |
Mobile sidebar close control |
Open navigation |
Mobile sidebar trigger |
Toggle sidebar |
Desktop sidebar trigger |
Pagination |
Pagination navigation landmark |
Previous page |
Previous-page control |
Next page |
Next-page control |
Show options |
Combobox options trigger |
Clear selection |
Combobox clear control |
Remove {label} |
Removable Badge button with string or number text |
Remove |
Removable Badge button with other content |
Dismiss notification |
Icon-only toast close control |
Dismiss |
Information Banner close button |
Unread |
Unread Dropdown Menu notification item |
Choose a file or drag and drop it here |
File input accessible name when no label is supplied |
Choose a file |
File input visible button text |
or drag and drop it here |
File input visible instruction |
Uploading... |
File Upload Card uploading status |
Completed |
File Upload Card completed status |
Upload failed |
File Upload Card failed status |
Preview {fileName} |
File Upload Card preview control |
Remove {fileName} |
File Upload Card remove control |
Cancel {fileName} |
File Upload Card cancel control |
Upload progress for {fileName} |
File Upload Card progress bar |
Breadcrumb |
Breadcrumb navigation landmark |
More breadcrumb items |
Breadcrumb ellipsis |
Progress |
Progress bar |
Progress steps |
Stepper list |
Cancel |
Table input cell button that discards the draft |
Confirm |
Table input cell button that saves the draft |
Down {value} |
Trend Indicator text for a downward change |
No change {value} |
Trend Indicator text for a flat change |
Up {value} |
Trend Indicator text for an upward change |
Expand {label}, Level {level} |
Table Tree row without a parent |
Expand {label}, Level {level}, child of {parent} |
Table Tree row with a parent |
Collapse {label}, Level {level} |
Expanded Table Tree row without a parent |
Collapse {label}, Level {level}, child of {parent} |
Expanded Table Tree row with a parent |
Level {level} |
Table Tree row position without a parent |
Level {level}, child of {parent} |
Table Tree row position with a parent |
Unread |
Message status icon |
Read |
Message status icon |
Failed |
Message status icon |
Message actions |
Message action panel toolbar |
Reactions |
Message reactions group |
Typing |
Message typing indicator |
Play |
Message audio and video play control |
Pause |
Message audio and video pause control |
Mute |
Message video mute control |
Unmute |
Message video unmute control |
Full screen |
Message video full-screen control |
Message |
Message composer field |
Send |
Message composer send button |
AI insights |
AI Label default text |
Expected range |
AI Expected Range data-list label |
Helpful |
AI Feedback thumbs-up button |
Loading AI insight |
AI Inline Insight loading status |
Not enough data for insights yet. |
AI Inline Insight empty message |
Not helpful |
AI Feedback thumbs-down button |
Refresh insight |
AI Meta Line refresh button |
Thanks for the feedback |
AI Feedback prompt after a selection |
Was this helpful? |
AI Feedback prompt |
AI explanation |
AI Explanation Popover and AI Driver Breakdown label |
AI-generated insights can be inaccurate. Use them as a reference, not as definitive guidance. |
AI Insights disclaimer |
Applied |
AI Recommendation Card Applied chip |
Applied: {title} |
AI Recommendation Card announcement |
Apply |
AI Recommendation Card Apply button |
Apply this recommendation? |
AI Recommendation Card confirm question |
Close |
AI Explanation Popover and Metric Chart Modal close buttons |
Couldn't generate insights |
AI Insights closed error text and announcement |
Couldn't generate insights. Check your connection and try again. |
AI Insights open error text |
Dismiss recommendation |
AI Recommendation Card dismiss button |
Dismissed |
AI Recommendation Card Dismissed text |
Dismissed: {title} |
AI Recommendation Card announcement |
Est. impact |
AI Recommendation Card impact label |
Generating insights |
AI Insights loading announcement |
Generating… |
AI Insights loading button |
Likely drivers |
AI Explanation Popover drivers heading |
Loading AI explanation |
AI Explanation Popover and AI Driver Breakdown loading status |
Loading recommendation |
AI Recommendation Card loading status |
No significant changes this period |
AI Insights closed empty text |
No significant changes this period. Insights appear here when your metrics move. |
AI Insights open empty text |
No single clear cause. The change is spread across segments. |
AI Explanation Popover and AI Driver Breakdown no-clear-cause text |
Review |
AI Recommendation Card Review button |
Show less |
AI Insights toggle when open |
Show more |
AI Insights toggle when closed |
Suggested by AI |
AI Recommendation Card label |
Top drivers |
AI Driver Breakdown drivers heading |
Try again |
AI Insights retry button |
Undo |
AI Recommendation Card Undo button |
Undone: {title} |
AI Recommendation Card announcement |
View details |
AI Explanation Popover action |
{value}% of change |
AI driver row share text |
Loading metric |
Metric Chart Card loading status |
Zoom in |
Metric Chart Modal trigger name and tooltip |
Open sidebar |
Desktop sidebar trigger tooltip while collapsed |
Close sidebar |
Desktop sidebar trigger tooltip while expanded |
Sign out |
Sidebar account card (Simple) sign-out button |
X-axis: |
Chart axis legend, before xAxisLabel |
Y-axis: |
Chart axis legend, before yAxisLabel |
No file chosen |
File Input sm empty state text |
Upload |
File Input sm visible button text |
View |
File Input sm View button text |
View {fileName} |
File Input sm View button name |
Exact value |
Metric Value value tooltip title |
Previous period |
Metric Value comparison tooltip title |
Day view |
Calendar view menu item and trigger |
Week view |
Calendar view menu item and trigger |
Month view |
Calendar view menu item and trigger |
Today |
Calendar Today button |
Previous month |
Calendar previous button in Month view |
Next month |
Calendar next button in Month view |
Previous week |
Calendar previous button in Week view |
Next week |
Calendar next button in Week view |
Previous day |
Calendar previous button in Day view |
Next day |
Calendar next button in Day view |
Week {week} |
Calendar ISO week badge |
Week of {date} |
Calendar Week view grid and mobile day strip |
{count} more… |
Calendar month cell “more” button text |
{count} more event on {date} |
Calendar “more” button name for one event |
{count} more events on {date} |
Calendar “more” button name for several events |
{date}, {count} event |
Calendar day cell name with one event |
{date}, {count} events |
Calendar day cell name with several events |
Events on {date} |
Calendar mobile selected-day list |
No events |
Calendar mobile list and side panel without events |
All day |
Calendar all-day lane, all-day event names, and side panel time |
Add event |
Calendar month cell add button tooltip |
Add event on {date} |
Calendar month cell add button name |
Event details |
Calendar Day view side panel region |
Explicit aria-label props take precedence over translated defaults. Badge accepts
removeLabel to override its remove button name. FileInput keeps its existing label precedence.
Its visible instruction is hidden from assistive technology, so translate
Choose a file or drag and drop it here together with Choose a file and
or drag and drop it here. Combobox.TriggerInput accepts clearLabel to override the clear control.
When a Combobox has a label, its options trigger is named by that label instead of Show options.