Certainly! To achieve this, you can use the {% form 'form-ID' %} liquid tag in your code. Here’s how you can modify your template:
{% assign locale = request.locale %}
{% form 'form-' | append: locale %}
This assumes that your form IDs are constructed as ‘form-EN’, ‘form-DE’, etc. The append filter will concatenate ‘form-’ with the current locale, giving you the correct form ID dynamically.
This simplifies your code and makes it more scalable, especially when adding more languages in the future.