Nova · i18n
Depth and display fields
Prose is found at any depth: a column’s label two levels down in a table’s spec is the same rule as a bare label. And a data field can be marked as words by its name: here every field ending in _display is prose, so the status a query made up is translated while person_name beside it is never touched, though “Pass” is in the book.
{
id: 'i18n-depth',
data: {
rows: [{ person_name: 'Pass', ticket_display: 'Standing' }],
},
layout: {
component: 'Table',
props: {
columns: [
{ key: 'person_name', label: 'Member' },
{ key: 'ticket_display', label: 'Ticket' },
],
rows: '$.rows',
},
},
}{
Member: 'Mitglied',
Ticket: 'Karte',
Standing: 'Stehplatz',
Pass: 'Zehnerblock',
}Nothing. It is only drawn.
{
rows: [{ person_name: 'Pass', ticket_display: 'Standing' }],
}Mitglied Karte Stehplatz
Runs in this page on the installed package. The input and the expected output are defined by the example.