Name Description Size Coverage
__init__.py Define a migration that adds entries according to `map` to resources in `paths`. This is primarily intended to be called from a migration script, which is then processed with the `l10n-migrate` CLI command. `map` is a mapping of resource reference paths to entry identifiers to functions that define their values; the function will be called with two positional arguments `(resource, context: MigrationContext)`. Functions defining new entries should return a Message, an Entry, or a tuple consisting of one of those along with a set of identifiers for entries after which the new entry should be inserted. If `paths` is a string, it needs to be either a path to a directory or a path to an l10n config file. This may also be set by an `l10n-migrate` CLI argument. 14795 -
utils.py Get an entry matching `id` from `res`. If not found return None 7012 -