-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Deterministic output of POT file #377
Copy link
Copy link
Closed
Labels
FrameworkIssues related to broader framework topics, especially as it relates to javascriptIssues related to broader framework topics, especially as it relates to javascript[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Metadata
Metadata
Assignees
Labels
FrameworkIssues related to broader framework topics, especially as it relates to javascriptIssues related to broader framework topics, especially as it relates to javascript[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
gettextcompiler 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?).