The current WP versions expose interface for this and store locale in WPLANG
option. Depending on your tools you could set it up during your spin up process (for example with WP CLI).
Older version used WPLANG
constant in wp-config.php
. I think it should still work on a fresh install (if you don’t have option set up) so you could include it in whatever process you use to write wp-config.php
.
Related Posts:
- Uninstall languages
- Can I change my language to English?
- change only the theme language
- Theme’s text domain & language.PO file not working
- how to modify language in a child theme
- WordPress native thickbox language
- Creating a WP site in Cyrillic
- Hebrew Characters Have gone bad
- Can I use two languages together in WordPress
- Why my wordpress admin panel shows only English Language in setting?
- Adding Language Switcher in header , WP
- What programming language should I study to know WordPress very well?
- The option to change site language isn’t available
- My website change automatically lenguage in wordpress [closed]
- Unable to change default language in wordpress – it changes texts to my language, but default value remains en_US
- POLYLANG: Hide current language
- How can i auto translate titles from any language to english?
- Unicode Problem
- wp language changed after upgrading to centos 5.8
- Is it possible to convert wordpress language files .mo to .po (and vice versa) in windows? [closed]
- How to Fix Mangled Thai Characters
- How do I fix errors regarding the language markup of my webpage?
- How to change frontend language only
- What coding language to use?
- Japanese content on english page?
- Theme RTL semi work but with “?rtl=1” fully work
- Language Pack not working
- How to change strings in the theme/core?
- qTranslate: Two languages on the same exact page
- How to identify WordPress language updates?
- WordPress language problem
- Spanish site, some words translation still in English
- WordPress uses en_US by default instead of en-US for html lang
- WordPress Language Settings will not work for BBPress
- Can’t change language (only “English (United States)”)
- HTML inside __() or _e() language translation string
- Change language by clicking a button
- Override default WordPress core translation
- Change page template programmatically ?
- How to change the language for the front-end only?
- Rewrite Rule for Multilingual Website, Like qTranslate?
- How to get a translated string from a language other than the current one?
- How to prevent Composer dependency conflicts amongst WP plugins?
- How to keep plugin translations after updates?
- How can I uninstall a language?
- How do I change the value of lang=en-US
- Why include a composer.json file with my plugin?
- Autoloading in Child Theme
- How do I change the language of only the login page?
- Using composer for dependency management in plugindevelopment
- Different back-end language for different users?
- Changing the language of a single page
- Edit plugin without hooks in functions.php
- Namespacing WordPress project according to FIG standards
- How do I override a parent theme’s language files with a child theme?
- Add language/country code to each possible URL
- Getting a blog language (site “lang_id” field vs the WPLANG setting)
- How to set locale in ajax requests?
- WordPress with composer, how to handle updates?
- URL to download latest version of WP for other languages than English
- What is the difference between the Package Language and the Site Language?
- Translate content, not instance, per-post
- Change content language for one page
- Setting the language of RSS feed
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- How to write Hebrew characters?
- How to change language file used by _e function
- How to trigger the core WPLANG to make automatically set a language when the theme is activated? [duplicate]
- Use composer to load custom classes [closed]
- WordPress admin not changing language
- Filter the URL of next_posts_link & previous_posts_link
- How to use load_plugin_textdomain from within a theme
- Multisite use language code as subdirectory
- Why load_textdomain work but not load_plugin_textdomain?
- Language Translation is not working?
- How to find a language direction?
- Is it possible to set another language for debugging messages?
- allow arabic letters when register new account
- How to have english digits in some posts with an rtl WordPress theme
- Prevent WordPress updates from overriding custom language translations?
- Is it possible to check is loaded language files correctly with WordPress plugin?
- How to use both British and American English?
- How to change the language of the ‘Reset Password’ page
- WordPress language switcher
- Make changes to translation?
- Overwrite default WordPress wording
- How can I have case-sensitive theme directory names when installed with Composer?
- How to reload wordpress textdomains at runtime
- In a continuous integration environment how do you implement the database entries for plugins and themes
- Woocomerce language
- Is there any workaround to a core update still showing after core update if language set to anything other than US English
- WordPress with Composer and different plugins for dev/live.
- Prevent wordpress from updating language files
- How can I customize the upload error message in WordPress?
- WordPress theme with frontend in different language than backend?
- Where is the right .mo file inside the language repository?
- setlocale for date
- How to set a custom title per language?
- html lang=”” instead of lang=”en-us” – why?
- Possible to add a language file to a plugin without adding .po/.mo files to plugin directory?