Index: src/wp-includes/option.php
===================================================================
--- src/wp-includes/option.php	(revision 39687)
+++ src/wp-includes/option.php	(working copy)
@@ -1798,14 +1798,26 @@
 		'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',
-	) );
+	require_once( ABSPATH . 'wp-admin/includes/translation-install.php' );
+	$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',
+				'schema' => array(
+					'format' => 'string',
+					'enum' => array_merge( $languages, array_values( wp_list_pluck( $translations, 'language' ) ) ),
+				),
+			),
+			'type'         => 'string',
+			'description'  => __( 'WordPress locale code.' ),
+			'default'      => 'en_US',
+		) );
+	}
 
 	register_setting( 'writing', 'use_smilies', array(
 		'show_in_rest' => true,
