FlowbitePhoenix.Gettext (FlowbitePhoenix v0.1.2)

View Source

Gettext backend for FlowbitePhoenix.

This module provides internationalization support for FlowbitePhoenix components. It can work with or without Gettext depending on what's available in the host application.

Summary

Functions

Translates a string with domain using gettext if available.

Translates plural forms using gettext if available.

Translates a string using gettext if available, otherwise returns the default.

Functions

dgettext(domain, message, bindings \\ %{})

Translates a string with domain using gettext if available.

dngettext(domain, msgid, msgid_plural, n, bindings \\ %{})

Translates plural forms using gettext if available.

gettext(message, default \\ nil)

Translates a string using gettext if available, otherwise returns the default.

This function provides fallback translations when Gettext is not available.