Questions tagged [intl]

Intl is a PHP extension which give ability to use Unicode, software internationalization (I18N) and globalization (G11N) from the ICU library.

Intl is the short description for Internationalization.

It's a PHP extension which create a wrapper for the library.

There are several modules available:

More information can be found on the PHP.net documentation.

434 questions
0
votes
2 answers

PHP Startup: Unable to load dynamic library 'intl' (tried: /opt/homebrew/lib/php/pecl/20190902/intl

I am setting the environment for the use of CodeIgniter4. I want to use "extension=intl" or "extension=mbstring" in php.ini php.ini extension=intl ;extension=imap ;extension=ldap extension=mbstring After that, when the local server is executed, the…
0
votes
1 answer

Dart/Flutter Error in For Loop when work with Date (intl)

In my App, I made a for loop that prints a succession of 600 consecutive dates to match a date entered by the user. I used the INTL library for Dates. here is a part of the code: var date = []; // is the list that will contain all…
Kalias 29
  • 23
  • 6
0
votes
1 answer

react cannot call a class as a function

I'm only using functional components in my project and despite that, I'm getting this error: Uncaught TypeError: Cannot call a class as a function. This is part of the parent component where I get the error: (the problem is with the…
Ala Ben Aicha
  • 1,155
  • 2
  • 14
  • 30
0
votes
1 answer

Using JavaScript's Intl object to display country names with a definite article

In some languages a country name can have a definite article, like for example German and I saw here, that some of the places in English as well. So my question would (an I'm not sure whether it's possible or not) whether JavaScript's built-in Intl…
orustammanapov
  • 1,792
  • 5
  • 25
  • 44
0
votes
1 answer

Null Safety Migration: How to migrate an App with intl package?

I am using intl: ^0.17.0 in the App that I want to migrate to null safety. All my packages, including intl, support null safety so the dart migrate analysis works without a problem and I can go to the migration assistant link. However when I get…
David L
  • 1,134
  • 7
  • 35
0
votes
1 answer

toLocalString not the same as string when comparing

I am comparing two strings with a currency that seems to be the same. One is created with toLocaleString() and the other by declaring a static string. Both put out the same value on the console, but every compare method fails for them. Any idea why…
Franki1986
  • 1,320
  • 1
  • 15
  • 40
0
votes
0 answers

MediaWiki 1.36 internal error: intl required

It says I require the PHP component intl, which is already installed in my XAMPP directory. Also, I have gotten rid of the semicolon preceding it in the php.ini file, and have no idea how to solve this problem. I'd appreciate it if someone had the…
0
votes
1 answer

Using Dart / Flutter, how would I compare the values of two textfields to provide a time duration output?

Imagine I have 2 textfields that a user can input a 24 hour time in the format 1400 for example. Textfield 1 is the start time of a shift and textfield 2 is the end time. Ideally I'd like the duration between the two times to be displayed in a text…
Mark
  • 37
  • 4
0
votes
1 answer

getting a single index in an object to concatonate with an api call

I'm trying to get a single index of daysArray to concatonate with temperature. Presently building a weather app and am trying to return an with the day of the week and the temperature. Right now it is returning the entire week and the temperature…
robocop
  • 37
  • 6
0
votes
2 answers

How to set a default time of 11:59 pm , while selecting endDate using Date picker in Flutter?

My plan is to select 2 dates start Date end Date Where I should get the start date as "20/08/2021 12:00 AM" and end date as "20/08/2021 11:59 PM". But I am only getting the start Date as "20/08/2021 12:00 AM" not the end Date as "20/08/2021 11:59…
Spsnamta
  • 479
  • 6
  • 11
0
votes
1 answer

Using INTL to get the full week's days from today

I'm trying to get the days of the week from the date of the specific day (e.g today is wednesday so I'd like to get today plus the 7 days after today) using the INTL. I have managed to get today's date but I'm unsure how to get the rest of the…
0
votes
0 answers

Is there a TS library to format numbers in parts with internationalization and abbreviations (React Native usage)?

I am looking for a lib to format currencies and numbers with internationalization, abbreviations (e.g. k, M, G, T for metric and M, B, T for currencies), with and also the ability to return all the parts of the formatted value such as done by the…
0
votes
1 answer

Update ICU Version in PHP 5.3.6

I'm spend some time to install MediaWiki. As install base i use my virtual machine with windows 2003 and iis. After installing php and configuring some things i stuck right now at configuring intl and icu. After a while i recognize, intl is a…
Frank
  • 780
  • 1
  • 10
  • 22
0
votes
0 answers

Error install CodeIgniter 4 - Require ext-intl

I use macOS BigSur operating system and have PHP 8.0.8 in XAMPP installed. When I want to download CodeIgniter 4 using composer, an error message appears in my terminal like this: Problem 1 - codeigniter4/framework[4.0.0, ..., v4.1.3] require…
Ifadak
  • 65
  • 11
0
votes
1 answer

How to convert a number from 20,95 to 20.95 in Dart/Flutter?

I get a String (20.95) from a spreadsheet and need to convert it to Double (20.95). I tried using the Intl package, using double.parse(NumberFormat.currency(locale: 'en_US').format(price) but it always returns the value with a comma. Error:…
MData
  • 15
  • 6