Giter Club home page Giter Club logo

primelocale's Introduction

Maven Actions Status CI Actions Status Integration Tests Sonar License: MIT Discord Chat Stackoverflow Prime Discussions

PrimeFaces Hero

PrimeFaces

This is an overview page, please visit PrimeFaces.org for more information.

PrimeFaces Logo

Overview


PrimeFaces is one of the most popular UI libraries in Java EE Ecosystem and widely used by software companies, world renowned brands, banks, financial institutions, insurance companies, universities and more. Here are some of the users who notified us or subscribed to a PrimeFaces Support Service.

Community <> Elite <> Pro


This is the open source code and issue tracker of the PrimeFaces master (a.k.a. community version).
Please check the following link for informations about Elite and Pro: PrimeFaces Support

What does that mean?

  • PrimeFaces is developed by PrimeTek and the open source community.
  • The most contributers here on GitHub are working on PrimeFaces in their spare time.
  • PrimeTek pushes fixes and new features from their closed source Elite and Pro repositories to the community edition.
  • We, the community on GitHub, only provide support for issues, which are reproducable with the current SNAPSHOT (scroll down for more information on how to use it).
  • We are NOT able to port bugfixes to elite releases. This is up to PrimeTek and can e.g. be triggered with PrimeFaces PRO.

Versions


Version Binary Source JSF version Java version Documentation
14.0.x JAR Sources 2.3 - 4.0 11 - ? 14.0.0 Documentation
13.0.x JAR Sources 2.0 - 4.0 8 - ? 13.0.10 Documentation
12.0.x JAR Sources 2.0 - 4.0 8 - ? 12.0.0 Documentation
Archive
Version Binary Source JSF version Java version Documentation
11.0.0 primefaces-11.0.0.jar primefaces-11.0.0-sources.jar 2.0 - 4.0 8 - ? 11.0.0 Documentation
10.0.0 primefaces-10.0.0.jar primefaces-10.0.0-sources.jar 2.0 - 3.0 8 - ? 10.0.0 Documentation
8.0 primefaces-8.0.jar primefaces-8.0-sources.jar 2.0 - 2.3 8 - ? 8.0 Documentation
7.0 primefaces-7.0.jar primefaces-7.0-sources.jar 2.0 - 2.3 7 - ? 7.0 Documentation
6.2 primefaces-6.2.jar primefaces-6.2-sources.jar 2.0 - 2.3 6 - ? 6.2 Documentation
6.1 primefaces-6.1.jar primefaces-6.1-sources.jar 2.0 - 2.3 5 - ? 6.1 Documentation
6.0 primefaces-6.0.jar primefaces-6.0-sources.jar 2.0 - 2.2 5 - ? 6.0 Documentation
5.3 primefaces-5.3.jar primefaces-5.3-sources.jar 2.0 - 2.2 5 - ? 5.3 Documentation
5.2 primefaces-5.2.jar primefaces-5.2-sources.jar 2.0 - 2.2 5 - ? 5.2 Documentation
5.1 primefaces-5.1.jar primefaces-5.1-sources.jar 2.0 - 2.2 5 - ? 5.1 Documentation

For a full list of the available downloads, please visit the download page.

Maven


Release
<!-- Java EE / javax.* / JSF 2.3 -->
<dependency>
    <groupId>org.primefaces</groupId>
    <artifactId>primefaces</artifactId>
    <version>14.0.0</version>
</dependency>

<!-- Jakarta EE / jakarta.* / Faces 4.0+  -->	
<dependency>
    <groupId>org.primefaces</groupId>
    <artifactId>primefaces</artifactId>
    <version>14.0.0</version>
    <classifier>jakarta</classifier>
</dependency>
SNAPSHOT
<!-- Java EE / javax.* / JSF 2.3 -->
<dependency>
    <groupId>org.primefaces</groupId>
    <artifactId>primefaces</artifactId>
    <version>15.0.0-SNAPSHOT</version>
</dependency>

<!-- Jakarta EE / jakarta.* / Faces 4.0+  -->
<dependency>
    <groupId>org.primefaces</groupId>
    <artifactId>primefaces</artifactId>
    <version>15.0.0-SNAPSHOT</version>
    <classifier>jakarta</classifier>
</dependency>

<repositories>
  <repository>
    <id>sonatype-snapshots</id>
    <name>Sonatype Snapshot Repository</name>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <releases>
        <enabled>false</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

Usage


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
	xmlns:jsf="http://xmlns.jcp.org/jsf"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

	<h:head>

	</h:head>

	<h:body>

		<p:spinner />

	</h:body>
</html>

Demo


Please refer to the showcase in order to see the full usage of the components. Sources of PrimeFaces showcase are available within module primefaces-showcase.

Contribution


Visit the contribution page for detailed information.

Release Instructions


  • Run mvn versions:set -DgenerateBackupPoms=false -DnewVersion=14.0.0 to update all modules versions
  • Commit and push the changes to GitHub
  • In GitHub create a new Release titled 14.0.0 to tag this release
  • Run mvn clean deploy -Prelease to push to Maven Central
  • Rename Milestone in GitHub Issues and close it
  • Create a new Milestone

License


Licensed under the MIT License.

primelocale's People

Contributors

aletornesello avatar alymbek-kg avatar antlionguard avatar bitlab-code avatar daut avatar dbelob avatar dflock avatar fprijate avatar jadestern avatar jepsar avatar joiglifberg avatar kalinkrustev avatar koliver94 avatar mees- avatar melloware avatar mertsincan avatar michastubi avatar paulorievrs avatar piique avatar shiftcodedream avatar soydiego avatar stefan-dan avatar tavoda avatar tomas3093 avatar tsipiniuk avatar tsuyoz avatar tugcekucukoglu avatar ubau avatar yoni-edrigo avatar zvn2060 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

primelocale's Issues

fr: slide: "Ascenceur" is spelled wrong, I think.

"Ascenceur" isn't a word afaict, and looks like it might be a misspelling of "Ascenseur", which would translate as "Elevator", according to Google Translate.

I'm not sure what the context for "slide" actually is, so not sure what the correct translation would be.

Context for translation

Can you please provide some context where translations for "weak", "medium" and "strong" is used because correct translation is not so straightforward and sometimes depends on surrounding context.

dateFormat in es.json is incorrect

In the Spanish translation (es.json) the date format is currently:
"dateFormat": "dd/mm/yyyy"
This shows the year twice. It should be
"dateFormat": "dd/mm/yy",

cannot make it work, an example use would help

Hello,

I am trying to lokalize an app using a community locale.

I cannot make it work through the global registration api (prime vue app wide configuration object)

i tried

  • community package import and global registration (does not work)
  • handmade message global registration (does not work)
  • component local override (works)

Here is a reproduction example with primevue.
https://stackblitz.com/edit/ejwndf?file=src%2FApp.vue,src%2Fmain.js%3AL117,src%2Ffr.json

does somewhy have an idea why global API does not work as it is ?

I would gladly contribute and add installation examples to primereact and primevue or to this package directly :)

Clarify MIT License

The package.json lists the MIT license. However, the GitHub repo isn't tagged with a license, there's no LICENSE file, nor any mention of the license in the README. Could we clarify the license for this repo?

german missing fileSizeTypes

german version is missing fileSizeTypes.
it's the same text as in english.
"fileSizeTypes": ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"],

Incorrect dateFormat for en-gb: (yy/mm/dd vs dd/mm/yy)

The en-gb locale file's dateFormat entry (yy/mm/dd) differs from the standard JavaScript toLocaleDateString("en-GB") method among other sources.

new Date().toLocaleDateString("en-GB") // dd/mm/yy
new Intl.DateTimeFormat("en-GB").format(new Date()) // dd/mm/yy

Other sources:
Wikipedia - Date and Time Notation in the United Kingdom
Oracle Documentation - Date and Time Formats in the United Kingdom
DateTime::Locale - DateTime::Locale::en_GB

Original PR: #65

Invalid JSON files are not importable - because of comments

The following JSON files have comments in:

  • fr.json
  • pl.json
  • nb-no.json
  • id.json
  • fa.json
  • en-gb.json
  • en-au.json

These are therefore invalid, and trying to import them into code will fail.

This was pretty surprising to me - how else are people using these files, if not importing them? I'm using them like this:

import primeLocaleEn from '../../primelocale/en.json'
import primeLocaleFr from '../../primelocale/fr.json'

export const primeLocales = { ...primeLocaleEn, ...primeLocaleFr }

and then in my language switcher component:

import { usePrimeVue } from 'primevue/config'
const primevue = usePrimeVue()

primevue.config.locale = primeLocales[selectedLanguage]

But this fails with the fr.json file, because it's not a valid JSON file - until I removed the comments.

Am I doing this wrong?

kz

{
  "startsWith": "Басталады",
  "contains": "Қамтиды",
  "notContains": "Қамтымайды",
  "endsWith": "Аяқталады",
  "equals": "Тең",
  "notEquals": "Тең емес",
  "noFilter": "Фильтрсіз",
  "filter": "Фильтр",
  "lt": "Кем",
  "lte": "Кем немесе тең",
  "gt": "Көбірек",
  "gte": "Көбірек немесе тең",
  "dateIs": "Күніне тең ",
  "dateIsNot": "Күніне тең емес",
  "dateBefore": "Күніне дейін",
  "dateAfter": "Күнінен кейін",
  "custom": "Өзгеше",
  "clear": "Жою",
  "apply": "Қабылдау",
  "matchAll": "Барлығын сәйкестендіру",
  "matchAny": "Кез-келгенімен сәйкестендіру",
  "addRule": "Шартты қосу",
  "removeRule": "Шартты жою",
  "accept": "Иә",
  "reject": "Жоқ",
  "choose": "Таңдау",
  "upload": "Жүктеу",
  "cancel": "Болдырмау",
  "completed": "Аяқталды",
  "pending": "Күтілуде",
  "fileSizeTypes": ["Б", "Кб", "Мб", "Гб", "Тб", "Пб", "Эб", "Зб", "Йб"],
  "dayNames": ["Жексенбі", "Дүйсенбі", "Сейсенбі", "Сәрсенбі", "Бейсенбі", "Жұма", "Сенбі"],
  "dayNamesShort": ["Жсн", "Дсн", "Сей", "Ссн", "Бсн", "Жұм", "Снб"],
  "dayNamesMin": ["Же", "Дү", "Сс", "Сә", "Бс", "Жұ", "Сб"],
  "monthNames": [
    "Қаңтар",
    "Ақпан",
    "Наурыз",
    "Сәуір",
    "Мамыр",
    "Маусым",
    "Шілде",
    "Тамыз",
    "Қыркүйек",
    "Қазан",
    "Қараша",
    "Желтоқсан"
  ],
  "monthNamesShort": [
    "Қаң",
    "Ақп",
    "Нау",
    "Сәу",
    "Мам",
    "Мау",
    "Шіл",
    "Там",
    "Қыр",
    "Қаз",
    "Қар",
    "Жел"
  ],
  "chooseYear": "Жылды таңдау",
  "chooseMonth": "Айды таңдау",
  "chooseDate": "Күнін таңдау",
  "prevDecade": "Алдыңғы онжылдық",
  "nextDecade": "Келесі онжылдық",
  "prevYear": "Алдыңғы жыл",
  "nextYear": "Келесі жыл",
  "prevMonth": "Алдыңғы ай",
  "nextMonth": "Келесі ай",
  "prevHour": "Алдыңғы уақыт",
  "nextHour": "Келесі уақыт",
  "prevMinute": "Алдыңғы минута",
  "nextMinute": "Келесі минута",
  "prevSecond": "Алдыңғы секунд ",
  "nextSecond": "Келесі секунд",
  "am": "Түске дейін",
  "pm": "Түстен кейін",
  "today": "Бүгін",
  "now": "Қазір",
  "weekHeader": "Апт.",
  "firstDayOfWeek": 1,
  "showMonthAfterYear": false,
  "dateFormat": "dd.mm.yy",
  "weak": "Жеңіл",
  "medium": "Қалыпты",
  "strong": "Күрделі",
  "passwordPrompt": "Құпия сөзді енгізіңіз",
  "emptyFilterMessage": "Нәтижесіз",
  "searchMessage": "{0} нәтиже қолжетімді",
  "selectionMessage": "{0} дене таңдалынды",
  "emptySelectionMessage": "Таңдалынған элементтер жоқ",
  "emptySearchMessage": "Нәтиже табылмады",
  "emptyMessage": "Қолжетімді нұсқау жоқ",
  "aria": {
    "trueLabel": "Дұрыс",
    "falseLabel": "Дұрыс емес",
    "nullLabel": "Таңдалынбады",
    "star": "1 жұлдыз",
    "stars": "{star} жұлдыз",
    "selectAll": "Барлық денелер таңдалынды",
    "unselectAll": "Барлық денелер таңдалынбады ",
    "close": "Жабу",
    "previous": "Алдыңғы",
    "next": "Келесі",
    "navigation": "Навигация",
    "scrollTop": "Жоғарыға жылжыту",
    "moveTop": "Басына жылжыту",
    "moveUp": "Үстіне жылжыту",
    "moveDown": "Астына жылжыту",
    "moveBottom": "Соңына жылжыту",
    "moveToTarget": "Қабылдағышқа жылжыту",
    "moveToSource": "Дереккөзге жылжыту",
    "moveAllToTarget": "Барлығын қабылдағышқа жылжыту",
    "moveAllToSource": "Барлығын дереккөзге жылжыту",
    "pageLabel": "{page} бет",
    "firstPageLabel": "Бірінші бет",
    "lastPageLabel": "Соңғы бет",
    "nextPageLabel": "Келесі бет",
    "previousPageLabel": "Алдыңғы бет",
    "rowsPerPageLabel": "Әр беттегі  жолдар",
    "jumpToPageDropdownLabel": "Беттің ашылмалы тізіміне өту",
    "jumpToPageInputLabel": "Енгізілген бетке өту",
    "selectRow": "Жолды таңдаңыз",
    "unselectRow": "Жол таңдалынбады",
    "expandRow": "Жол кеңейтілді",
    "collapseRow": "Жол жиылды",
    "showFilterMenu": "Фильтр мәзірін көрсету",
    "hideFilterMenu": "Фильтр мәзірін жасыру",
    "filterOperator": "Фильтр операторы",
    "filterConstraint": "Фильтрді шектеу",
    "editRow": "Жол өңдеу",
    "saveEdit": "Өңдеуді сақтау",
    "cancelEdit": "Өңдеуді болдырмау",
    "listView": "Тізім ретінде",
    "gridView": "Тор ретінде",
    "slide": "Слайд",
    "slideNumber": "{slideNumber}",
    "zoomImage": "Суретті үлкейту",
    "zoomIn": "Үлкейту",
    "zoomOut": "Кішірейту",
    "rotateRight": "Оңға бұру",
    "rotateLeft": "Солға бұру"
  }
}

Question: How to apply prime_locale globally?

Question: How to apply prime_locale globally?

I did a stupid thing: Every components has declaring prime_locale, please guide me apply prime_locale globally.

Or you can guide me use a base class, then extend base class (hook technique).

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.