Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Change arabic number format.

    General Discussion
    2
    2
    222
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rosisse last edited by

      How can I use Arabic language without displays arabic number ١٢٣٤٥ ?
      I want display Normal format 12345.

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @rosisse,

        If you check this file packages/Webkul/Core/src/Core.php. In this file we have used NumberFormatter class. You need to set en locale for each object.

        For example,
        $num = NumberFormatter('en', NumberFormatter::DECIMAL);

        1 Reply Last reply Reply Quote 1
        • First post
          Last post