How can synonyms be defined to allow loading babel with, e.g., \usepackage[nl-NL,en-GB]{babel} rather than \usepackage[dutch,english]{babel}?

  • What do you want that for? Babel works fine as specified.
    – jarnosz
    Jun 3, 2015 at 19:26
  • 1
    @Lusr56 I imagine it would make integration with I18N applications a little more straightforward. Jun 3, 2015 at 20:23
  • 2
    @SeanAllred What we need then may be a whole rewrite of babel, renaming all internal language codes to conform to RFC-5646.
    – jarnosz
    Jun 3, 2015 at 21:37
  • @Lusr56 I hear the maintainer accepts patches ;) Jun 3, 2015 at 22:25

1 Answer 1


Just create a proxy file. For example, for Dutch the file would be nl-NL.ldf and its contents


For en-GB.ldf it would be:


But the language names, as set in \selectlanguage and the like, are still dutch and british, respectively.

  • So, again, what's the gain?
    – jarnosz
    Jun 3, 2015 at 20:09
  • @Lusr56 I've edited the answer to show this case. Jun 4, 2015 at 6:47
  • I removed my objection and edited the answer to make it complete and explicit.
    – jarnosz
    Jun 4, 2015 at 17:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .