Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
watwut
9y ago
0 comments
Save
Share
Or you can do it the way front-end does and create a 'localizeText(id, default_translation)' function which you will use to print texts. Best of the two worlds.
0 comments
2 comments · 1 top-level
top
newest
oldest
mattmanser
9y ago
· 1 in thread
Not without problems. If you change you default translation, you must also change the one you have sitting in your file for your translator.
watwut
OP
9y ago
The point is to not have another translation in the file. English will be default.
We used static file analysis to extract default (English) strings into files.
j
/
k
navigate · click thread line to collapse