Skip to content
Advertisement

locale for Switzerland (to correctly display Swiss Franc)

I’m looking for the locale to set in PHP for Switserland, for a client that needs support for Swiss Franc.

I can’t seem to find the correct locale for Switserland. Does anyone know which one I can use?

I need it in the following format like: nl_NL, en_US, en_GB

Advertisement

Answer

it depends on what language your client speaks. There are multiple parts in Switzerland where different languages are used.

possible locales are :

  • de_CH (german)
  • fr_CH (french)
  • it_CH (italian)

if you require the setting for currency formatting only it shouldn’t really matter which one you set. but it could make a difference in date formatting if you want to display names of weekdays and months.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement