@jsenv/navi 0.29.484 → 0.29.485

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -93,7 +93,10 @@ elsewhere and drops its translate, or it would land twice as far as the hand
93
93
  went. A handler that draws nothing (a token on a free canvas) leaves the position
94
94
  baked into the element; one whose draw comes later than its answer returns the
95
95
  promise of that draw. Something that changes WHILE it is dragged, or must never
96
- be translated, is [`moving`](#while-it-is-being-moved-moving).
96
+ be translated, is [`moving`](#while-it-is-being-moved-moving). A `transition` on
97
+ `translate` would animate every move of the hand, and the element would trail
98
+ behind it: a carried element transitions anything but `translate` — the way
99
+ back to its place navi animates itself.
97
100
 
98
101
  **Where it may go.** A `move` stays inside what one can SEE of its scroll
99
102
  container — the nearest ancestor whose `overflow` is `auto` or `scroll`, the
package/docs/i18n.md CHANGED
@@ -231,6 +231,19 @@ look up; the exhaustive list of keys and defaults is the registration block in
231
231
  registered by `@jsenv/humanize`. Both go into the one registry `naviI18n` is,
232
232
  so overriding either is the same call.
233
233
 
234
+ A key whose default holds forms — a message that counts characters, actions,
235
+ line breaks — is overridden with forms too, or the one string is said whatever
236
+ the count:
237
+
238
+ ```js
239
+ naviI18n.add("constraint.min_length.default", {
240
+ fr: {
241
+ 1: "Au moins [min] caractères (un seul pour l'instant).",
242
+ other: "Au moins [min] caractères ([count] pour l'instant).",
243
+ },
244
+ });
245
+ ```
246
+
234
247
  **Do not put application texts in `naviI18n`.** Key collisions aside, the two
235
248
  have different lifecycles: navi's keys come with the package version, the app's
236
249
  come with the app. The unit names it looks up are for rewording a unit navi or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/navi",
3
- "version": "0.29.484",
3
+ "version": "0.29.485",
4
4
  "type": "module",
5
5
  "description": "Library of components including navigation to create frontend applications",
6
6
  "repository": {