Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more LATAM regions #760

Merged
merged 15 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"newfold-labs/wp-module-atomic": "^1.3",
"newfold-labs/wp-module-coming-soon": "^1.2.6",
"newfold-labs/wp-module-context": "^1.0.1",
"newfold-labs/wp-module-data": "^2.6.3",
"newfold-labs/wp-module-data": "^2.6.5",
"newfold-labs/wp-module-deactivation": "^1.2.3",
"newfold-labs/wp-module-ecommerce": "^1.3.44",
"newfold-labs/wp-module-features": "^1.4.2",
Expand All @@ -87,7 +87,7 @@
"newfold-labs/wp-module-migration": "^1.0.12",
"newfold-labs/wp-module-notifications": "^1.6.1",
"newfold-labs/wp-module-onboarding": "^2.5.0",
"newfold-labs/wp-module-patterns": "^2.4.1",
"newfold-labs/wp-module-patterns": "^2.6.0",
"newfold-labs/wp-module-performance": "2.0.1 as 1.9.9",
"newfold-labs/wp-module-runtime": "^1.0.11",
"newfold-labs/wp-module-secure-passwords": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,23 +176,26 @@ public static function force_BR_for_pt( $locale ) {
/**
* Replace all Spanish locales with Mexico
*
* This is in order to have one Spanish translation used for all locales.
*
* @param string $locale - locale string
* @return string updated locale
*/
public static function force_MX_for_es( $locale ) {
return str_replace(
array(
'es_AR', // Argentina
'es_BO', // Bolivia
'es_CL', // Chile
'es_CO', // Colombia
'es_EC', // Ecuador
'es_CR', // Costa Rica
'es_DO', // Dominican Republic
'es_EC', // Ecuador
'es_ES', // Espanol / Spain
'es_GT', // Guatemala
'es_PE', // Peru
'es_CL', // Chile
'es_UY', // Uruguay
'es_PR', // Puerto Rico
'es_GT', // Guatemala
'es_ES', // Espanol / Spain
'es_CR', // Costa Rica
'es_UY', // Uruguay
'es_VE', // Venezuela
),
'es_MX', // Mexico
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"translation-revision-date": "2023-08-24 18:27",
"generator": "WP-CLI\/2.11.0",
"source": "build\/2.11.7\/index.js",
"source": "build\/2.11.8\/index.js",
"domain": "messages",
"locale_data": {
"messages": {
Expand Down
Loading
Loading