Skip to content

collecting translations #3

@kof

Description

@kof

static parsing is not a good idea.

Rely on template engine is still a better idea then writing an regex parser, because if engine api will change it is very easy to notify this, then to get different hard understandable errors because of f.e. "space" char on the wrong place. Also it could be possible that "{{" will be customizable in jquery-tmpl later. A big rewrite of jquery-tmpl is comming, so better to rely on api.

Also you need to be able to access translations from js code, so you would need one more parser and this is complicated.

My idea is:

while you are in dev mode, let your translation functino write the string into lang file. You are normally always testing a stuff you want to deploy, so once rendered the page you have all translations collected and if your project is under git, you can even make a diff and see the changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions