DialectoInContext.Overrides (dialecto_in_context v0.1.0)

Copy Markdown View Source

The saved-drafts payload the overlay posts to /__dialecto/overrides (spec-0017 §1.2): {edits: [{domain, key, locale, to}]}, where a plural entry carries forms: [msgstr0, msgstr1, …] instead of (or beside) to. The set replaces the previous one; an empty list restores the catalogs.

Summary

Functions

{:ok, applied, ignored} — the store entries for every valid edit, and how many named a locale gettext can't have — or :error when the payload isn't a well-formed edit list.

Functions

parse(arg1)

@spec parse(term()) :: {:ok, [tuple()], non_neg_integer()} | :error

{:ok, applied, ignored} — the store entries for every valid edit, and how many named a locale gettext can't have — or :error when the payload isn't a well-formed edit list.