mix localize.translate.gen.translate_function (Localize Translate v0.5.0)

Copy Markdown View Source
This task is deprecated. Not needed since 0.4.0: Localize.Translate.QueryBuilder no longer calls translate_field.

Generates a migration to add a database function translate_field that uses the Localize.Translate structured translation schema to resolve a translation for a field.

This task is deprecated and will be removed in a future release. Since 0.4.0 Localize.Translate.QueryBuilder walks the locale chain in plain SQL and no longer calls this function, so a new application does not need it. A database that already has it can keep it or drop it.

Summary

Functions

format_string!(string)

@spec format_string!(String.t()) :: String.t()

migrations_path(repo)