Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request concerning DefaultLCID parameter #641

Open
glasserre-pdw opened this issue Oct 14, 2024 · 0 comments
Open

Feature request concerning DefaultLCID parameter #641

glasserre-pdw opened this issue Oct 14, 2024 · 0 comments

Comments

@glasserre-pdw
Copy link

Hello.

The idea is to allow Parameter in template to be used in DefaultLCID attribute. If we try to use parameter, we have this error message :

The 'DefaultLCID' attribute is invalid - The value '{parameter:LCID}' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:int' - The string '{parameter:LCID}' is not a valid Int32 value.

This will avoid the fact to have a template file by Language just to define default language and simplify template file lifecycle.

Replace

<pnp:Localizations DefaultLCID="1033"> <pnp:Localization LCID="1033" Name="English" ResourceFile="clt-projectv3.en-US.resx" /> <pnp:Localization LCID="1036" Name="French" ResourceFile="clt-projectv3.fr-FR.resx" /> </pnp:Localizations>

by

<pnp:Localizations DefaultLCID="{parameter:LCID}"> <pnp:Localization LCID="1033" Name="English" ResourceFile="clt-projectv3.en-US.resx" /> <pnp:Localization LCID="1036" Name="French" ResourceFile="clt-projectv3.fr-FR.resx" /> </pnp:Localizations>
Describe alternatives you've considered
Currently, i create a template file by language. Painfull when you have 6 languages to handle.

Additional context

Parameter works on Currency field :

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant