Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meal translations #65

Open
kiliankoe opened this issue Nov 5, 2019 · 1 comment
Open

Meal translations #65

kiliankoe opened this issue Nov 5, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@kiliankoe
Copy link
Owner

kiliankoe commented Nov 5, 2019

Just something to think about, but probably won't yield results even close to how good I think this might work. The idea is to do simple keyword-based replacements and try to cover as much as possible.

Falafel → Falafel
Salsa → Salsa
Burger → Burger
mit → with
Pommes frites → fries
und → and
Salat → salad

Meal titles usually don't feature complex grammar, so maybe this'll work? It would be rather cumbersome though, especially since there'd have to be app updates with new translations. And not doing this client-side feels even worse.

It would probably make sense not to replace the meal title with this, but show the translation as a subtitle in lighter text somewhere or otherwise show that this is just a suggested translation.

The other option would be to translate meal titles dynamically against some translation service, DeepL for example. For cost reduction this would have to be proxied through a service of mine though.

@kiliankoe kiliankoe added the enhancement New feature or request label Nov 5, 2019
@kiliankoe
Copy link
Owner Author

lol @ keyword-based translation

for future reference, maybe this works: https://developer.apple.com/documentation/SwiftUI/View/translationTask(_:action:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant