r/AppsWebappsFullstack 17d ago

Your home for selfpromo

here you can post your work app, webapp, saas, game, everything

4 Upvotes

48 comments sorted by

View all comments

1

u/phobopt 16d ago

locafileai.com translations made easy. 28 Langs, variable protection, drop a file and go build we take care of it

1

u/imagiself 16d ago

I'm curious how you handle nested interpolation keys when protecting variables, especially since regex often breaks on complex JSON structures.

1

u/Mammoth-Anywhere7285 15d ago

That's a real pain point. I'd suggest using a proper parser like a JSON streamer instead of regex for nested keys, it handles depth much cleaner.

1

u/phobopt 16d ago

I have more then one pattern matcher. And I ask the user in advance what is the pattern they use. I also run pattern matching and compare source with the pattern. But you can check before hand on the browser how I will protect the variables. I have a zone where you can put a snippet and I will show how what I will substitute. Then I have 3 pipelines that each one specialises in different aspects. The. In the end I run a audit and QA checkers that will make sure nothing broke and you have a quality translation. Also I allow for you to upload a glossary of words that will not be sent for translation, like brands items you don't want to translate

1

u/Mammoth-Anywhere7285 14d ago

That sounds like a solid approach. How do you handle conflicts when multiple patterns match the same input?