# `MishkaCmsMigrationWeb.Live.Admin.Dashboard.LanguageNotice`
[🔗](https://github.com/mishka-group/mishka_cms_migration/blob/v0.0.1/lib/mishka_cms_migration_web/live/admin/dashboard/language_notice.ex#L5)

The warning a run shows when the links an import writes may not match the site's language
addresses (`MishkaCmsMigration.Targets.Helpers.LanguageUrls.cause/2`): the source runs Polylang or
WPML, or the site gives every language a prefix. `warning/1` draws it as the admin's own warning
(Gervaz's `:warning` alert, `MishkaGervaz.UIAdapters.Tailwind.alert/1`) in a run's expanded row
(`MishkaCmsMigrationWeb.Live.Admin.Dashboard.Home.RunDetails`) and on the Items page's head
(`MishkaCmsMigrationWeb.Live.Admin.Dashboard.Item.Index`): what the cause is, what is affected, a
tip and a suggestion. A run with no cause draws nothing. The cause is read from the run's `extra`
and the site's setting, which the settings cache answers, so it adds no query.

The part that asks for an answer is the main menu's Needs your decision on the Items page, whose
Decide… offers Write links for the site's current mode and Wait. For a source that runs a
language plugin it also says how translations are imported, and what of them waits for a decision
(`MishkaCmsMigration.Targets.Helpers.Editions`); for Polylang that its free plugin shares no
language over REST, so an export file brings the translations. Its tip says that a later change of
Language in addresses is followed by Run again and Import, which write the links of the menu and of
the pages and posts again (`MishkaCmsMigration.Targets.Helpers.LanguageUrls.hash/2`).

# `warning`

The warning for `run`, or nothing when its links need no decision.
## Attributes

* `run` (`MishkaCmsMigration.MigrationRun`) (required) - the run, with its site and extra.
* `class` (`:string`) - extra classes of the warning's box. Defaults to `nil`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
