i18n-module
i18n-module copied to clipboard
The locale name isn't translated in the promobox

As reported by @afercia in https://github.com/Yoast/i18n-module/issues/15#issuecomment-265753457 the locale name isn't translated, but always in English, no matter the site language or user language.
A while ago I've played a bit with the GP plugin, turns out the locale native_name is available (check for example the gp/api/languages endpoint). It would just need to be added to the projects endpoint but that would require to hack the plugin (it's a two line change):