Skip to content

Commit 9c9f2e9

Browse files
Remove web part locale files in order to run locally in any language, updating documentation accordingly
1 parent 9796de1 commit 9c9f2e9

File tree

7 files changed

+11
-31
lines changed

7 files changed

+11
-31
lines changed

config/config.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
},
1212
"externals": {},
1313
"localizedResources": {
14-
"PropertyControlsTestWebPartStrings": "lib/webparts/propertyControlsTest/loc/{locale}.js",
1514
"PropertyControlStrings": "lib/loc/{locale}.js"
1615
}
1716
}

docs/documentation/docs/guides/mpa.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ Before you start contributing to this project, you will need Node.js. This proje
1616
- `gulp serve` to serve your project (or `npm run serve` if you want to use [`spfx-fast-serve`](https://github.com/s-KaiNet/spfx-fast-serve))
1717
- Start making your changes
1818

19+
### Run the project locally
20+
21+
As this project embeds a SPFx solution, you have the ability to test all the property controls on your machine.
22+
23+
You can also debug them in any supported language, by running one of the following commands (for example in _french_):
24+
25+
- `gulp serve --locale=fr-fr`
26+
- `npx fast-serve --locale=fr-fr` (if using `spfx-fast-serve`)
27+
1928
### Documentation
2029

2130
SharePoint Framework Property Controls uses [MkDocs](http://www.mkdocs.org) to publish documentation pages. See more information about installing MkDocs on your operating system at <http://www.mkdocs.org/#installation>.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "gulp build",
1010
"clean": "gulp clean",
1111
"test": "gulp test",
12-
"serve": "gulp bundle --custom-serve --max_old_space_size=4096 && fast-serve",
12+
"serve": "fast-serve",
1313
"versionUpdater": "gulp versionUpdater",
1414
"prepublishOnly": "gulp",
1515
"changelog": "node scripts/create-changelog.js && node scripts/sync-changelogs.js && gulp versionUpdater",

src/webparts/propertyControlsTest/PropertyControlsTestWebPart.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import * as React from 'react';
22
import * as ReactDom from 'react-dom';
33

4-
import * as strings from 'PropertyControlsTestWebPartStrings';
5-
64
import { PanelType } from '@fluentui/react';
75
import { DocumentBulletListRegular } from '@fluentui/react-icons';
86
import { DayOfWeek } from '@fluentui/react/lib/DateTimeUtilities';
@@ -336,7 +334,7 @@ export default class PropertyControlsTestWebPart extends BaseClientSideWebPart<I
336334
displayGroupsAsAccordion: true,
337335
groups: [
338336
{
339-
groupName: strings.AboutGroupName,
337+
groupName: 'About',
340338
isCollapsed: false,
341339
groupFields: [
342340
PropertyPaneWebPartInformation({

src/webparts/propertyControlsTest/loc/en-us.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/webparts/propertyControlsTest/loc/fr-fr.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/webparts/propertyControlsTest/loc/mystrings.d.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)