Skip to content

Commit

Permalink
Merge 3d2d31c into b8d745a
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube authored Oct 25, 2024
2 parents b8d745a + 3d2d31c commit 7949c20
Show file tree
Hide file tree
Showing 13 changed files with 1,019 additions and 900 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"require-dev": {
"newfold-labs/wp-php-standards": "^1.2.4",
"wp-cli/i18n-command": "^2.6.2",
"wp-cli/i18n-command": "^2.6.3",
"wp-phpunit/wp-phpunit": "^6.6.2"
},
"scripts": {
Expand Down 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.4",
"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 @@ -86,8 +86,8 @@
"newfold-labs/wp-module-marketplace": "^2.4.0",
"newfold-labs/wp-module-migration": "^1.0.12",
"newfold-labs/wp-module-notifications": "^1.6.1",
"newfold-labs/wp-module-onboarding": "^2.4.2",
"newfold-labs/wp-module-patterns": "^2.4.1",
"newfold-labs/wp-module-onboarding": "^2.5.0",
"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
173 changes: 115 additions & 58 deletions composer.lock

Large diffs are not rendered by default.

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.8\/index.js",
"source": "build\/2.12.0\/index.js",
"domain": "messages",
"locale_data": {
"messages": {
Expand Down
Loading

0 comments on commit 7949c20

Please sign in to comment.