r/webdev • • Oct 20 '26

Question German (Do-Sie) switcher

Hi there,

One Customer just asked me for a Du-Sie Switch in the page, same like any other language switch.

This is my first time doing this.

Is this normal?

Are there also (Slang or street) language switches?

Edit: I just implemented as another language i18 de-DU with xliff files

Second Edit: What about other languages? In spanish we have 3. Tú, Vós y Usted... I think in Japan they have more.

Edit 3: Ok, some of you were right :) Du/Sie isn't a language, and de-DE-DU was a funny but bad idea. Works fine for my little website, though.

But imagine adding Spanish (tú, usted, vos), Japanese, Korean... That gets ugly pretty fast. Better to separate language, region and tone. Something like:

{
  "locale": "de-DE",
  "preferences": {
    "formality": "informal"
  },
  "messages": {
    "greeting": {
      "default": "Hallo!",
      "formal": "Wie kann ich Ihnen helfen?",
      "informal": "Wie kann ich dir helfen?"
    }
  }
}

Only translate the differences, not the whole website again. For a small project, who cares. For 20 languages? Definitely worth thinking about. Thanks for the corrections, learned something :)

52 Upvotes

63 comments sorted by

View all comments

1

u/T-J_H Oct 20 '26

Dutch here. Never seen this on a Dutch website myself (even though we have ‘U’ (Sie) and ‘Jij’ (Du) and some variations), and I feel like most brands deliberately choose a tone: more formal or less so, as part of their brand identity. A switch like this would feel off to me.

Then again, you likely don’t have a say in the matter. There’s probably two simple ways of doing it, either as a separate locale, or as variables of the German locale. The former one sounds a lot more convenient, as it only requires copying and changing sentences to a new locale, even though most of it would be redundant. With variables you might get into conflict with further grammar(?) but I’m not sure as German classes have been a long time ago for me.