Minimal translation helper for Gantt labels + month names.
Consumers pass a translations map to override the English defaults
for the labels the chart actually renders (toolbar buttons, sidebar
header, edge indicators, etc.). Anything not overridden falls back
to the default English string.
Example
translations = %{
labels: %{today: "Aujourd'hui", task: "Tâche"},
month_names_short: %{1 => "Janv", 2 => "Févr", ...}
}
I18n.label(:today, translations)
#=> "Aujourd'hui"
Summary
Functions
Look up a label string by atom key (:today, :task, etc.) and
format %{count}-style placeholders against the bindings map.
Short month name (e.g. "Apr") for month number 1-12.
Types
Functions
@spec label(atom(), translations(), map()) :: String.t()
Look up a label string by atom key (:today, :task, etc.) and
format %{count}-style placeholders against the bindings map.
@spec month_name_short(1..12, translations()) :: String.t()
Short month name (e.g. "Apr") for month number 1-12.