Currently we only need German and English. Does it help to remove xml files or classes or add some config to reduce memory given that I don’t need all of the other languages atm?
Are there other things that can be done to reduce memory use by disabling specific features?
You cannot use language variants with the preferredLanguages parameter. If you try, you should get: Internal Error: preferredLanguages may only contain language codes without variants (e.g. 'en', but not 'en-US'): [de-DE, en-GB]. Use 'preferredVariants' to specify variants.
ah sorry … I assumed you meant “preferredVariants” since “preferredLanguages” doesn’t appear on the swagger UI LanguageTool HTTP API
works like a charm!
but imho it would still be better to have a way to disable languages entirely to ensure that memory isn’t going to slowly climb. I guess we could monitor the memory use and restart if its reaches a certain limit.