Skip to content

Specifiy CultureInfo ? #344

Closed
dotnet/arcade
#16884

Description

@StefH

It seems that the writer used in:

handlebarsContext.RegisterHelper(name, (writer, context, arguments) =>
// and
handlebarsContext.RegisterHelper(name, (writer, options, context, arguments) =>

Is always using the current culture ? Is there a way to change this?

Activity

  1. oformaniuk commented on Apr 21, 2020

    @oformaniuk
    Member

    You can try to use Action<TextWriter, object> Compile(TextReader template) overload and pass TextWriter with configured IFormatProvider.
    Passed TextWriter should then be used in helpers.

  2. StefH commented on Apr 22, 2020

    @StefH
    CollaboratorAuthor
  3. added a commit that references this issue on Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions