diff --git a/wp-includes/option.php b/wp-includes/option.php
index fa935ce..7ab1e72 100644
--- a/wp-includes/option.php
+++ b/wp-includes/option.php
@@ -1798,14 +1798,21 @@ function register_initial_settings() {
 		'description'  => __( 'A day number of the week that the week should start on.' ),
 	) );
 
-	register_setting( 'general', 'WPLANG', array(
-		'show_in_rest' => array(
-			'name' => 'language',
-		),
-		'type'         => 'string',
-		'description'  => __( 'WordPress locale code.' ),
-		'default'      => 'en_US',
-	) );
+	$languages = get_available_languages();
+	$translations = wp_get_available_translations();
+	if ( ! is_multisite() && defined( 'WPLANG' ) && '' !== WPLANG && 'en_US' !== WPLANG && ! in_array( WPLANG, $languages ) ) {
+		$languages[] = WPLANG;
+	}
+	if ( ! empty( $languages ) || ! empty( $translations ) ) {
+		register_setting( 'general', 'WPLANG', array(
+			'show_in_rest' => array(
+				'name' => 'language',
+			),
+			'type'         => 'string',
+			'description'  => __( 'WordPress locale code.' ),
+			'default'      => 'en_US',
+		) );
+	}
 
 	register_setting( 'writing', 'use_smilies', array(
 		'show_in_rest' => true,
