You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cf3302c
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ListInput): the empty state reads right with any noun
The empty state built its own grammar around the record noun: a plural
"s" after it and "a" before it. With "email address" it read "No email
addresss yet" and "Add a email address to get started.", and with the
default noun "Add a item".
The messages now use the noun as given: "No {itemName} added yet" and
"Each {itemName} you add appears here." Both keep their placeholder, so
every translation keeps its contract.
[fix] ListInput's empty state reads right with any noun. Its title is "No {itemName} added yet", not "No {itemName}s yet", and its text is "Each {itemName} you add appears here.", not "Add a {itemName} to get started.": with "email address" it read "No email addresss yet" and "Add a email address". Both messages keep their `{itemName}` placeholder.
Copy file name to clipboardExpand all lines: packages/core/locales/en.json
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -680,12 +680,12 @@
680
680
"description": "The noun for one record in a lab ListInput when the app gives no noun of its own. The other ListInput messages put it in their `{itemName}` placeholder, as in \"Add item\" and \"Remove item 2\". Give the form of the noun that fits there."
681
681
},
682
682
"@astryx.listInput.emptyTitle": {
683
-
"defaultMessage": "No {itemName}s yet",
684
-
"description": "EmptyState title shown inside a lab ListInput when its collection has no records. `{itemName}` is the consumer's singular noun for one record(e.g. \"guest\"); the source appends a literal \"s\" to pluralize it, which only works for regular English plurals. If your language cannot pluralize an interpolated noun this way, rephrase around `{itemName}` instead (e.g. \"No {itemName} added yet\")."
683
+
"defaultMessage": "No {itemName} added yet",
684
+
"description": "EmptyState title shown inside a lab ListInput when its collection has no records. `{itemName}` is the singular noun for one record, from the app or the catalog (e.g. \"guest\" or \"email address\"). The noun can be any word, so the message uses it as given, with no plural ending or article. Write your translation so that it also needs none (e.g. \"No guest added yet\")."
685
685
},
686
686
"@astryx.listInput.emptyDescription": {
687
-
"defaultMessage": "Add a {itemName} to get started.",
688
-
"description": "EmptyState supporting text shown inside a lab ListInput when its collection has no records. `{itemName}` is the consumer's singular noun for one record(e.g. \"guest\")."
687
+
"defaultMessage": "Each {itemName} you add appears here.",
688
+
"description": "EmptyState supporting text shown inside a lab ListInput when its collection has no records, above the button that adds one. `{itemName}` is the singular noun for one record, from the app or the catalog (e.g. \"guest\" or \"email address\"). Use it as given, with no plural ending or article (e.g. \"Each guest you add appears here.\")."
0 commit comments