Bonfire.Common.Localise.POAnnotator (Bonfire v1.0.0-social-rc.1.19)

View Source

Asynchronously patches POT files with runtime URL context in dev environment. Uses Expo library for reliable POT file parsing and composition.

Summary

Functions

Returns a specification to start this module under a supervisor.

Helper to get current URL from runtime context

Callback implementation for GenServer.init/1.

Asynchronously patches POT file with URL context.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_process_current_url()

Helper to get current URL from runtime context

init(_)

Callback implementation for GenServer.init/1.

maybe_patch_pot_with_url_ast(msgid, domain, file, line)

patch_async(msgid, domain, file, line, url)

Asynchronously patches POT file with URL context.

start_link(opts)