primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Angular i18n error

Open MaksymShchukin opened this issue 6 years ago • 0 comments

I'm submitting a ... (check one with "x")

[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) This cannot be demoed in Plunkr because it's an issue that springs up when attempting to use the Angular i18n translation generation command line utility ng-xi18n. It can only be demoed via command line. See reproduction steps below.

Current behavior We cannot generate an i18n translation file for the project because of compilation error caused by PrimeNG dropdown. ERROR in node_modules/primeng/dropdown/primeng-dropdown.d.ts.Dropdown.html(17,83): Expected 0 arguments, but got 1.

Expected behavior Should generate a translation file without errors.

Minimal reproduction of the problem with instructions You can find repro project at https://github.com/MaximShchukin/primeng-i18n-issue or you can create it yourself:

  1. Create new angular project ng new
  2. Install and configure PrimeNG, @angular/cdk, @angular/localize npm install primeng @angular/cdk @angular/localize
  3. Import DropdownModule in your app.module
  4. Add p-dropdown component to app.component.html
  5. Generate angular i18n translation source file ng xi18n --output-path src/locale

What is the motivation / use case for changing the behavior? We want to be able to use angular i18n.

Please tell us about your environment:

Windows 10, Vs Code, npm, expressjs

  • Angular version: 5.X 9.1.11

  • PrimeNG version: 5.X 9.1.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] Browser does not matter

  • Language: [all | TypeScript X.X | ES6/7 | ES5] Does not apply

  • Node (for AoT issues): node --version =
    Does not apply

MaksymShchukin avatar Jun 12 '20 09:06 MaksymShchukin