# verified_translations v0.1.1 - API Reference

## Modules

- [VerifiedTranslations](VerifiedTranslations.md): Compile-time verified translations for Phoenix.
- [VerifiedTranslations.Credo.PreferSigil](VerifiedTranslations.Credo.PreferSigil.md): ## Basics
- [VerifiedTranslations.GettextMacros](VerifiedTranslations.GettextMacros.md): Gettext's translation macros, compiled to verified JSON translations.
- [VerifiedTranslations.LiveView](VerifiedTranslations.LiveView.md): `on_mount` hook setting the LiveView process locale from the `"locale"`
param or session (see `VerifiedTranslations.Plug`)
- [VerifiedTranslations.Message](VerifiedTranslations.Message.md): One translation file: `<path>/<domain>/<slug>-<hash>.json` holding the
source text (`"msgid"`) and one key per locale.
- [VerifiedTranslations.Plug](VerifiedTranslations.Plug.md): Sets the locale from `?locale=fi`, falling back to the session.
- [VerifiedTranslations.Plural](VerifiedTranslations.Plural.md): CLDR plural rules, compiled from the bundled `priv/cldr/plurals.json`
(cardinal: 1 file, 2 files) and `priv/cldr/ordinals.json` (ordinal: 1st,
2nd), CLDR 49, Unicode License v3.

## Mix Tasks

- [mix verified_translations.extract](Mix.Tasks.VerifiedTranslations.Extract.md): Recompiles the project with verification disabled, so every `~t` creates
its missing translation file in one go (and adds keys for newly configured
locales), then lists the files that still lack a locale.
- [mix verified_translations.import_po](Mix.Tasks.VerifiedTranslations.ImportPo.md): Imports translated messages from Gettext PO files into
`priv/translations/<domain>/*.json`.
- [mix verified_translations.install](Mix.Tasks.VerifiedTranslations.Install.md): Installs verified_translations into a Phoenix project
- [mix verified_translations.migrate](Mix.Tasks.VerifiedTranslations.Migrate.md): Migrates gettext calls and PO translations to ~t
- [mix verified_translations.missing](Mix.Tasks.VerifiedTranslations.Missing.md): Lists translation files with empty or missing locales, without compiling.
- [mix verified_translations.put](Mix.Tasks.VerifiedTranslations.Put.md): Writes translations into the message's JSON file, creating it when needed.
- [mix verified_translations.review](Mix.Tasks.VerifiedTranslations.Review.md): Lists machine translations a human hasn't reviewed (`"origin"` with
`"by": "machine"`), with the model that made them, and marks them reviewed.
- [mix verified_translations.unused](Mix.Tasks.VerifiedTranslations.Unused.md): Compiles the project and lists translation files that no `~t` refers to.

