Forum Discussion
New-PnPTenantSite : LocaleId 2057 is not a supported locale.
I think this needs to be standardised.
If English is only chosen just because of the language and felt as if it will cater to English UK, its not about language. It impacts the date and time settings, it impacts the alerts, emails which wil get triggered. This sort of setting will mrun a riot in the environment where notification system is in place.
I dont know, if it is a technical limitation or kept for future work, but i can't believe a very significant configuration has been left out.
- Micha_PlexsysMar 26, 2019Copper Contributor
paulpascha In your answer to the question you refer to a microsoft resource containing the language id's. Locale id's will do more than only change the language, but also formatting etc.
According to https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/ms462988(v%3Doffice.15) The locale id of 2057 should enable UK-locale settings.
But I also receive the same error;
New-SPOSite : LocaleId 2057 is not a supported locale.
At line:1 char:1- paulpaschaMar 26, 2019Bronze Contributor
Micha_Plexsyswhen creating a new site you cannot specify 2057 as the LCID. The LCIDs supported when creating a new site are listed in the article below as part of the SPLanguage class. The SPLocale class exists to support a site's Regional Settings which can be applied after creating the site.
https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-server/ms442852(v=office.15)
- null nullAug 03, 2017Iron Contributor
Thanks Paul for the answer.
However, i dont understand why it was kept outside PowerShell.
For administrators, it a nightmare if they have to compartmentalize into UI and PowerShell.
Why -lcid was included in cmdlet if it does not work for all.
I am seeing things off late in the MS space, which does not look like developed by a product company at all.
- paulpaschaAug 03, 2017Bronze Contributor
The LCID you specify when creating your site collection determines the default language of the site and that works fine if you know the supported LCID's
I can imagine it would be convenient for you to be able to directly specify the regional settings as well. If it's really important to you, you could go and create your own PowerShell cmdlet based on the exsting one and provide for the additonal functionality that way. The available cmdlets are all Open Source on GitHub and scenario's like yours are great opportunities to contribute!
- null nullAug 03, 2017Iron Contributor
Thanks Paul.
Could you please let me know how do i go about changing a param.
This is a bit grey area for me, is it something that i have to make change to a shell.