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
1 answer

Is Intl.Collator possible in an Expo Managed react native app?

Do Expo managed react native apps have access to an Intl Collator? I don't see it in the docs but thought I'd ask. Looking to use it for sorting like this . import { createNewSortInstance } from 'fast-sort'; const naturalSort =…
GollyJer
  • 23,857
  • 16
  • 106
  • 174
0
votes
1 answer

problem with intl and zip package of php for magento

I try to install Magento 2 but when i do composer update tell me there is an error and the intl and zip package there isn't in the system. I try to install this package but the error persist, i try to reinstall with brew but continue to give me an…
codefree
  • 59
  • 1
  • 7
0
votes
0 answers

No MaterialLocalizations found error is occurring for TextFields

I need to add function a language selection function for my app. And it was done. The next problem is that the main language should be Russian. I do not need English right now. but intl_en.arb file is creating automatically. Hence I found another…
user13989757
0
votes
0 answers

php intl parameter Formatting not working with yii2

I have used https://www.yiiframework.com/doc/guide/2.0/en/tutorial-i18n#parameter-formatting but on my server, it displayed like a full string without any effect of intl. my code is like: echo \Yii::t('app', 'There {n,plural,=0{are no cats} =1{is…
Er.KT
  • 2,852
  • 1
  • 36
  • 70
0
votes
1 answer

Format a number to string in Flutter

I have build a sign up system with phone number Input in Flutter with the intl_phone_field package. Now I have to format this number to a string to fill it in a database. Is there any way to do this. I could not found anything for this. Thank you…
Luca_54
  • 529
  • 4
  • 16
0
votes
1 answer

The problem of flutter internationalization

My current main project is called A, which relies on a local package B, B’s internationalization is invalid and always returns to the default value. The flutter_intl plugin is used. This is my issue:…
Zhuoyuan.Li
  • 318
  • 2
  • 10
0
votes
3 answers

Date format in Dart which includes GMT

How do I convert my current time into GMT/ UTC time in Dart, similar to the javascript way: new Date().toUTCString(): Tue, 01 Nov 2011 19:06:35 GMT I tried couple of formatters see below but it did not work //var f = DateFormat('E, d MMM yyyy…
0
votes
1 answer

Flutter translate filter with parameter

I'm trying to translate an string like "filter [solved|date] clear". If I don't want to translate the parameters (solved|date), all works well. MyLocalizations.of(context).clearFilter( filter.activeFilter) But i want to translate the parameters,…
Dominik00000
  • 311
  • 1
  • 3
  • 10
0
votes
1 answer

Number Format Patterns for Currency

i'd made this currency pattern to prefix a sign (+ or -) based on the value static final String _currencyWithPrefixSignAndSymbol = "+ \u00A4 0.00 ;- \u00A4 0.00"; the pattern put a + prefix if the value is positive and a - if negative; Problem: i…
0
votes
2 answers

magento setup:upgrade PHP Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found

I installed magento 2.3.5-p1 in Mamp on my Mac. Now I wanted to add a module, but I get the command bin/magento setup:upgrade the error code Running schema recurring...PHP Fatal error: Uncaught Error: Class 'IntlDateFormatter' not found in…
teccrow
  • 85
  • 1
  • 9
0
votes
1 answer

Flutter dart Error with converting timestamp to date without time

I Store the Meal and the Date in Cloud_Firestore without the Time. Getting it back it adds Time. Now i want to remove the Time so that only the Date is left. I tried the following Code shown below there i get the Error. From the dart and…
Tempelritter
  • 471
  • 9
  • 22
0
votes
0 answers

Why isn't JavaScript's Intl.NumberFormat() rounding numbers correctly?

new Intl.NumberFormat('en-IN', { maximumFractionDigits: 2 }).format(-4.125) This returns -4.13, whilst round(-4.125, 2) returns the correct value of -4.12, rounded towards the higher value, closer to 0
Nicu Zamfir
  • 57
  • 10
0
votes
1 answer

Symfony doesn't detect intl extension (running on XAMPP)

Symfony Profiler tell me this deprectation message : Please install the "intl" PHP extension for best performance. I enabled intl extension in my php.ini file and it appears in phpinfo, but the deprectation message still appears in Symfony. I'm…
user13051631
0
votes
1 answer

MAMP PRO PHP 5.3.5, Intl required by symfony2

Symfony2 is setup apart from one thing and that is "intl" I found instructions to get this working for the latest mamp pro but step 0 doesn't make sense to me, I ignored it and tried to carry on with setup but everything works until I get to "make…
LondonGuy
  • 10,778
  • 11
  • 79
  • 151
0
votes
1 answer

Intl.NumberFormat String Currency before number

The following string return the value like: 938.173,00 euro. How to obtain the value like: Euro 938.173,00? formattedValue = value.toLocaleString('it-IT', {currency: 'EUR', currencyDisplay: 'name', style: 'currency'}); Thanks
user12742603