Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
LeviticusMB
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
The Divine Judgement: Enforce TypeScript Types at Runtime
(github.com)
1 points
by
LeviticusMB
3y ago
|
0 comments
2.
▲
by
LeviticusMB
4y ago
We're not talking full HTML documents here, just strings with an occasional link or word styling or maybe once in a while a bulleted list. But your experience differs from mine then. Regarding the link, I was more thinking about how yo
3.
▲
by
LeviticusMB
4y ago
My experience is that most translators actually do know basic HTML or can at least translate an english base string containing HTML into their own language without messing it up. CSS would of course not be present, just sematic HTML (or any
4.
▲
by
LeviticusMB
4y ago
1. Usually OSS projects accept patches via PRs. Translations are no different for 99% of all projects. 2. Why? Keys with params will break no matter if it is in MessageFormat or TypeScript. At least with TypeScript you will know something i
5.
▲
by
LeviticusMB
4y ago
Well that's the point. It's not anything new at all, just the plain JavaScript/TypeScript/TSX you already use. No extra tools are required either; TypeScript and a good editor like VS Code handles it all.
6.
▲
by
LeviticusMB
4y ago
So let me just first say that just sending a CSV/JSON/YAML/whatever file to professional translators and expect good results back is just not going to work. We've done that and sometimes the context is just horribly wron
7.
▲
by
LeviticusMB
4y ago
That's MessageFormat and I think its a pain and severely limited. Maybe it's OK for English, which has really simple grammatical rules, but just add some gender to your plurals and it starts to become very complicated very quick.
8.
▲
by
LeviticusMB
4y ago
Building complex sentences absolutely require some form of logic. Different languages have very different rules for gender, plural, sexus, classes ( animated/humane/plants/etc). I'm arguing that each implemented language
9.
▲
by
LeviticusMB
4y ago
That Perl reference was new to me. Very interesting. Never localized my Perl programs back in the day. But of course I should not be surprised that Perl had a solution to any given problem 20+ years ago ... I like Fluent. It's just tha
10.
▲
by
LeviticusMB
4y ago
Well. For small projects or even larger open source projects I would expect the translators to just clone a ts file (which would basically just be JSON, but with comments, template strings, function calls), change the translations and contr
11.
▲
by
LeviticusMB
4y ago
Example parameters for a specific key and the ability to preview the different translations based on those examples is something I wished for. But since my translations are code, it basically means I would have to invoke a debugger on the f
12.
▲
by
LeviticusMB
4y ago
Yeah, naming each translation with a key is definitely the way to go. Apps are full of buttons and labels and short sentences so context is absolutely necessary.
13.
▲
by
LeviticusMB
4y ago
Well, you have to start somewhere. Anyone can learn how to call a function, just like they can learn MessageFormat. And basic HTML is something translators must already know.
14.
▲
by
LeviticusMB
4y ago
Anyone can learn how to call a function, just like they can learn how to splice a parameter into a string. And translators already have to know basic HTML anyway. MessageFormat is code. It's just not a very powerful language. And it kn
15.
▲
by
LeviticusMB
4y ago
Making localized web apps is such a pain and too often an afterthought. But what if it took almost no extra effort to make the app localized from the start? What if you could get static type checking, key documentation and code completion r
16.
▲
Show HN: Localization and translations should be code, not data
(github.com)
38 points
by
LeviticusMB
4y ago
|
60 comments
17.
▲
Show HN: Stream2GDrive: Pipe your files to Google Drive
(github.com)
1 points
by
LeviticusMB
12y ago
|
0 comments
18.
▲
by
LeviticusMB
13y ago
Demo page here: http://seqrentry.net/#demo
19.
▲
Show HN: SeQRentry - Let's fight weak passwords
(itunes.apple.com)
2 points
by
LeviticusMB
13y ago
|
1 comments
20.
▲
by
LeviticusMB
13y ago
Unfortunately, I don't have an Android version ready at this time. I hope to have it ready in July. Sorry. If you're still interested, mail me at info@seqrentry.net and I'll make sure you get a copy as soon as it's in a workable state.
21.
▲
by
LeviticusMB
13y ago
I've been working on something similar (on and off) for some time too: http://seqrentry.net/ It's currently in the App Store review queue but I would be happy to provide a private build for those interested. Works on any site, no plugins
22.
▲
by
LeviticusMB
13y ago
Unfortunately, unless you have a very deep understandning of your operating system AND you're logging audit to a REMOTE system, you should assume the worst and reinstall all reachable systems from scratch. Invalidate all ssh keys. Then chec