Skip to content
Choose languages for displaying WordPress in, in order of preference.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Add base for PHPUnit tests Oct 1, 2017
css/src
inc Disable controls if there are no more languages that could be added Mar 19, 2019
js/src Disable controls if there are no more languages that could be added Mar 19, 2019
tests/phpunit Add base for PHPUnit tests Oct 1, 2017
.babelrc Update dependencies Oct 10, 2018
.distignore Ignore .eslintignore for dist-archive Jan 10, 2019
.editorconfig Modernize build tools Sep 30, 2017
.eslintignore Add .eslintignore file Jan 7, 2019
.eslintrc Use wordpress/eslint-plugin Mar 19, 2019
.gitignore
.rtlcssrc Update rtlcss config Oct 1, 2017
.travis.yml Try a local phpunit install Sep 30, 2018
CHANGELOG.md
LICENSE
README.md Add some badges to readme Jul 3, 2018
composer.json Add phpunit dev dependency Jan 10, 2019
package-lock.json Use wordpress/eslint-plugin Mar 19, 2019
package.json Use wordpress/eslint-plugin Mar 19, 2019
phpcs.xml.dist Leverage PHPCompatibilityWP Sep 30, 2018
phpunit.xml.dist Add base for PHPUnit tests Oct 1, 2017
postcss.config.js Use wordpress/eslint-plugin Mar 19, 2019
preferred-languages.php Bump version to 1.6.0 Jan 10, 2019
readme.txt JS I18N support Jan 7, 2019
uninstall.php

README.md

Preferred Languages

Build Status codecov

A feature project for letting WordPress users set their site's language in a more sensible way.

What it does

This plugin lets you select multiple preferred languages in your settings. WordPress then tries to load the translations for the first language that's available, falling back to the next language in your list.

This works great when you want to display WordPress in a locale like German (formal) and have it fall back to informal German when there's no translation available.

Download

This GitHub repository holds the source files for the plugin. To download the final build, head over to WordPress.org.

Screenshots

Preferred Languages: Settings Section

Preferred Languages settings section

Preferred Languages: User Profile

A user’s individual list of preferred languages

Contributing

Please help test! Install the plugin and open issues for any bugs you might find.

To minify assets like JavaScript files and CSS when submitting a PR, run npm run build.

Also, please read all the blog posts tagged #preferred-languages on make/core and join the discussion in #core-i18n on the WordPress Slack team.

You can’t perform that action at this time.