This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needs to convert country names to country abbreviations (e.g., DE, EN) in a WPML language switcher without using flags.
Solution:
If you're experiencing this, we recommend you try the following steps:
1. Navigate to WPML >> Languages page.
2. Click on the Edit Languages link.
3. Enter the country codes (DE, EN, etc.) in the Translation text boxes.
4. Click the Save button.
5. Click on the Pencil icon to open the “Language Switcher Settings”, uncheck the “Flag” option, enable the “Native language name” option, and then click the Save button.
6. Clear all sorts of site/server/CDN cache.
This solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.