Site languages reset to one language
Symptoms
The Languages tab in Settings lists one language, with the Default badge, and no message appears. The list shows the site language code in lowercase (for example en for the site locale en_US) and the name in uppercase (EN). Your other languages are not in the list.
Cause
Morphic stores the language list in the option morphic_languages. When the stored value is not a non-empty list of rows, Morphic ignores it. Each row needs a text code and a text name. Morphic then shows one language taken from the site locale, and it does not show a message.
Fix
If the stored language list is damaged
The first row is the default language, and Morphic marks it with the Default badge. Add the default language first.
- Go to Settings.
- Select the Languages tab.
- Check the list. If it shows only one language, continue with step 4.
- Select Add language.
- In the new row, enter a code, such as
fr. Codes are two or three lowercase letters, optionally followed by-and two to eight letters or digits, such aspt-br. - Optional: in the same row, enter a name, such as
Français. Without a name, Morphic shows the code in uppercase, such asFR. - Repeat steps 4 to 6 for each language you need.
- Select Save languages. Morphic shows Languages saved and stores the list again.
Note: Morphic accepts at most 100 languages. Saving an empty list fails, so keep at least one language.
Still not working?
Collect the Morphic version shown in the plugin list, the message shown on the screen, and a screenshot of the Languages tab. If saving fails, copy the exact error text. Then contact us through the contact form with your Morphic version and the exact error text.