View Source GettextLLM.Gettext (gettext_llm v0.2.0)

Gettext folder & file scanning functions.

Summary

Functions

Scans the root gettext folder (ie. priv/gettext) and retrieves all the langage folders and the po files inside them.

Functions

scan_root_folder(gettext_root_path)

@spec scan_root_folder(Path.t()) ::
  {:ok, [%{language_code: String.t(), files: [Path.t()]}]} | {:error, any()}

Scans the root gettext folder (ie. priv/gettext) and retrieves all the langage folders and the po files inside them.