Comments (5)
I understand. It began as a question regarding specific extension, so I filed it here. I'll refile it in the correct issues list.
from sp-dev-fx-extensions.
And there it is, for the sake of progeny: SharePoint/sp-dev-docs#922
from sp-dev-fx-extensions.
I dug a little deeper, and it seems localizing Command Sets in this manner is not yet implemented, or forgotten all about.
In a file named listview-host-assembly-[locale]_[hash].js the commandslist is loaded from the spfx extension manifest.
While the manifest file neatly contains our localized resources:
...the commands list is instantiated with the default property:
from sp-dev-fx-extensions.
So basically we're currently stuck with a workaround like this:
public onInit(): Promise<void> {
Log.info(LOG_SOURCE, 'Initialized CommandSetTestCommandSet');
this.context._commands.forEach((command) => {
command.title = strings[command.id];
});
return Promise.resolve();
}
...which would force us to name resource properties after our command id's (in this case COMMAND_1, COMMAND_2)
from sp-dev-fx-extensions.
thx Martin, since this is a potential bug in the SPFx, would suggest using Issues list in https://github.com/SharePoint/sp-dev-docs/issues. which is our main channel for getting these kinds of potential issues known... and is getting synced to VSO automatically. I'll close this from here but would suggest to re-open in the right location so it gets the needed attention. I do apologize for the additional work. We use the sp-dev-docs for generic input and other repositories would be good for sample-specific issues, but not really for reporting potential issues in the actual SPFx. Thx for the issue details advance.
from sp-dev-fx-extensions.
Related Issues (20)
- Breadcrumbs keep getting shorter when you try to change window size HOT 1
- react-application-messagebanner - HOT 2
- react-application-messagebanner - Will not display after adding to site HOT 3
- NPM Errors HOT 3
- Solution Deployment Error HOT 2
- react-application-news-ticker - HOT 2
- The second time I click "Change Layout" the Dialog is maintaining a value of true for hideDialog HOT 1
- Create an extension to let users add sharepoint libraries/floders/files to a Teams channel as a chat or a message HOT 2
- Unable to translate the pages to the language code "fr-ca" HOT 1
- react-command-form-settings not redirect to my custom page HOT 1
- (react-application-news-ticker) If I wanted to use a List with a different name 'News', where would I need to make a change? HOT 1
- Print Does not Pickup any Barcode Values when enabled for List HOT 1
- SharePoint folder and .sppkg file HOT 6
- PRINT Sample does not work HOT 3
- Adding form customizers as a category on the search page of the website HOT 10
- react-command-change-page-layouttype - HOT 1
- Cannot bundle react-command-document-preview HOT 1
- react-application-personal-assistant - HOT 3
- react-application-pva-bot - Error instalar error al instalar y ejecutar gulp serve HOT 1
- react-application-machine-translations - HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sp-dev-fx-extensions.