Hello Polyglots, I am the…

Hello Polyglots, I am the pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party author for ReviewShort.

Plugin URL: https://de.wordpress.org/plugins/woo-product-reviews-shortcode/

Please DELETE all of the following language packs because it is not working for me and i want to ship language files with my plugin:

#de-de stable
#de-de development
https://translate.wordpress.org/projects/wp-plugins/woo-product-reviews-shortcode/stable/de/default/

As side info: translation files are already added in version 1.0.8 but they are not used, instead old translations are loaded from wp.org. and placed inside “/wp-content/languages/plugins”.
If i delete the files there it is using the language files inside the plugin folder.

Additionally: Screencast with details for my developer how i tried to fix it: https://screencast-o-matic.com/watch/cYiYXQEoj2

Additionally: We added a function to show de-de to all german speaking countries.
Maybe this causing the not loading of the language files from inside the plugin.

add_action( 'plugins_loaded', 'wprshrtcd_load_plugin_textdomain' );

function wprshrtcd_load_plugin_textdomain() {
add_filter( 'plugin_locale', 'wprshrtcd_check_de_locale');

load_plugin_textdomain(
'woo-product-reviews-shortcodeShortcode A shortcode is a placeholder used within a WordPress post, page, or widget to insert a form or function generated by a plugin in a specific location on your site.',
false,
dirname( plugin_basename( __FILE__ ) ) . '/languages/'
);

remove_filter( 'plugin_locale', 'wprshrtcd_check_de_locale');
}

function wprshrtcd_check_de_locale($domain) {
$site_lang = get_user_locale();
$de_lang_list = array(
'de_CH_informal',
'de_DE_formal',
'de_AT',
'de_CH',
'de_DE'
);

if (in_array($site_lang, $de_lang_list)) return 'de_DE';
return $domain;
}

#request