Skip to content

Translating String Literals in JavaScript #1676

@0b11001111

Description

@0b11001111

I spent the entire day to figure out why my translations for JS string literals did not show up on the website.
Turns out that my addon explicitly had to register for that by inheriting ir.http and overwriting _get_translation_frontend_modules_name to include itself.

There are plenty of posts on the web of people that seem to have the same issue, some of them years old.
If my solution follows the idiomatic way, I'd volunteer to make a PR extending the docs respectively.

Otherwise please add a note to the respective section that translations won't become active on their own...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions