Skip to content

Deterministic output of POT file #377

@aduth

Description

@aduth

I've observed a few issues where claimed changes are made to the POT file when in fact it's merely a reordering of strings. Unsure if this is an issue with order in which files are read from the filesystem, and whether this can be resolved in gettext compiler since it accepts an object (objects should not assume any specific order).

https://github.com/smhg/gettext-parser#data-structure-of-parsed-mopo-files

Since most JavaScript runtimes do respect order of object keys, it may be a matter of ensuring (or resorting) objects to insert strings in predictable order (alphabetical?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrameworkIssues related to broader framework topics, especially as it relates to javascript[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions