Skip to content

Commit

Permalink
Merge pull request #3140 from microsoft-search/fix/3116
Browse files Browse the repository at this point in the history
Fix localized SharePoint page when English is secondary language
  • Loading branch information
wobba authored Jul 18, 2023
2 parents f3fc2af + 935de62 commit 43732f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion search-parts/config/package-solution.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"solution": {
"name": "PnP Modern Search - Search Web Parts - v4",
"id": "59903278-dd5d-4e9e-bef6-562aae716b8b",
"version": "4.9.0.0",
"version": "4.9.1.0",
"includeClientSideAssets": true,
"skipFeatureDeployment": true,
"isDomainIsolated": false,
Expand Down
4 changes: 2 additions & 2 deletions search-parts/package-lock.json

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

2 changes: 1 addition & 1 deletion search-parts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pnp/modern-search-web-parts",
"version": "4.9.0",
"version": "4.9.1",
"private": true,
"main": "lib/index.js",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion search-parts/src/helpers/DateHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class DateHelper {
];

// Moment is by default 'en-us'
if (!culture.startsWith('en-us')) {
if (!culture.startsWith('en-us') && culture !== "en") {
// check if culture must be used with two letter name in momentjs
for (let i = 0; i < momentTwoLetterLanguageName.length; i++)
if (culture.startsWith(momentTwoLetterLanguageName[i])) {
Expand Down

0 comments on commit 43732f2

Please sign in to comment.