Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kurdish (Kurmanjî dialect) Language support #289

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/languages/ku/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## Initial release
(2024-11-20)
34 changes: 34 additions & 0 deletions packages/languages/ku/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# @zxcvbn-ts/language-ku

The Kurdish (Kurmanjî dialect) dictionary and language package for zxcvbn-ts

## Install

#### npm:

`npm install @zxcvbn-ts/language-ku --save`

#### yarn:

`yarn add @zxcvbn-ts/language-ku`

## Setup

```js
import { ZxcvbnFactory } from '@zxcvbn-ts/core'
import * as zxcvbnCommonPackage from '@zxcvbn-ts/language-common'
import * as zxcvbnKuPackage from '@zxcvbn-ts/language-ku'

const password = 'somePassword'
const options = {
translations: zxcvbnEnPackage.translations,
graphs: zxcvbnCommonPackage.adjacencyGraphs,
dictionary: {
...zxcvbnCommonPackage.dictionary,
...zxcvbnKuPackage.dictionary,
},
}

const zxcvbn = new ZxcvbnFactory(options)
zxcvbn.check(password)
```
34 changes: 34 additions & 0 deletions packages/languages/ku/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@zxcvbn-ts/language-ku",
"version": "4.0.0-beta.2",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Kurdish (Kurmanjî dialect) language package for zxcvbn-ts",
"license": "MIT",
"homepage": "https://github.com/zxcvbn-ts/zxcvbn",
"repository": {
"type": "git",
"url": "https://github.com/zxcvbn-ts/zxcvbn.git"
},
"author": "zxcvbn-ts",
"files": [
"dist",
"src"
],
"publishConfig": {
"access": "public"
},
"keywords": [
"zxcvbn",
"language",
"translation",
"kurdish",
"kurmanji"
],
"dependencies": {
"@zxcvbn-ts/dictionary-compression": "^2.0.0"
}
}

1 change: 1 addition & 0 deletions packages/languages/ku/src/commonWords.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Ez","Tu","Ew","Em","Hûn","Min","Te","Wî","Wê","Me","Wan","Kî","Çi","Kengê","Kuda","Çima","Çawa","Ev","Ew","Erê","Na","Ne","Spas","Baş","Xatirxwestin","Ji","Berê","Çûyî","Aha","Wanê","Bûn","Kes","Dema","Ber","Li","Nêz","Duh","Îro","Sibê","Xwendekar","Mamoste","Heval","Mal","Xane","Bajar","Gund","Çiya","Çem","Derya","Bazaar","Çarşî","Baz","Xezal","Kêf","Roj","Şev","Sibeh","Firavîn","Dîrok","Hewl","Gava","Jiyan","Mirin","Pêşî","Paşî","Pê","Bê","Zêde","Pîr","Ciwan","Zarok","Mêr","Jin","Bira","Xwişk","Dayik","Bav","Law","Keç","Stran","Hunermend","Xizmet","Rê","Derî","Çav","Dest","Pê","Ser","Ji","Li","Bin","Nav","Jor","Xwarin","Vejîn","Çûn","Hatîn","Bûn","Xebitîn","Raman","Fikir","Zanîn","Fêhm","Xwestin","Hildan","Vekirin","Girtin","Xwarin","Xwendin","Gotin","Gotar","Şopandin","Bişk","Pir","Kêm","Duyem","Sêyem","Çar","Pênc","Şeş","Heft","Heşt","Neh","Deh","Zeh","Hîn","Jî","Rû","Dil","Hesin","Hêvî","Xwe","Kêr","Malbat","Şîn","Bila","Qet","Heman","Herçî","Kêm","Tê","Wê","Pîroz","Bavê","Xezeb","Gov","Teng","Paqij","Zor","Tişt","Bikêr","Reng","Kiş","Rabe","Bêkes","Girtî","Azad","Kar","Baz","Şîv","Reş","Sipî","Tev","Navîn","Kurdistan","Rojava","Başûr","Bakur","Rojhilat","Sêv","Tirşîn","Hawîn","Payiz","Zivistan","Çep","Rast","Belav","Şermok","Xebat","Çavkanî","Rojhilatî","Desthilat","Gerîla","Destpêk","Fermandar","Nexşe","Kurte","Dirêj","Şer","Aşti","Dest","Nav","Ronî","Tengav","Rêvebir","Xiyal","Hemû","Kêfa","Dil","Bavê","Kêca","Xelil"]
1 change: 1 addition & 0 deletions packages/languages/ku/src/firstnames.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Ali","Azad","Baran","Berfin","Bêrîvan","Çiya","Dilovan","Dîlan","Emir","Evin","Ferhat","Gulistan","Hêvî","Hozan","Jiyan","Kawa","Lavin","Leyla","Mahmud","Medya","Mehmet","Miran","Narîn","Nazdar","Newroz","Rojan","Rojda","Rojîn","Serhat","Serxwebûn","Sînem","Şahin","Şîlan","Şîrîn","Tahir","Viyan","Xezal","Zana","Zara","Zîlan","Adar","Alan","Aram","Arî","Avan","Avîn","Aylan","Bahoz","Baz","Bawer","Berxwedan","Cîhan","Ciwan","Diyar","Dilsoz","Dilşad","Eylem","Fîraz","Hêlîn","Helîna","Hevîdar","Jînda","Kendal","Koçer","Leylan","Loqman","Mazlum","Nazenin","Nazê","Nûrî","Pêşeng","Reber","Rêzan","Rojîna","Ronahî","Rûbar","Rûken","Rûmet","Seda","Sevda","Şiyar","Şoreş","Tekoşîn","Vedat","Yekta","Zêdo","Zerîn","Zerya","Zeynep"]
14 changes: 14 additions & 0 deletions packages/languages/ku/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import firstnames from './firstnames.json'
import lastnames from './lastnames.json'
import commonWords from './commonWords.json'
import translations from './translations'
import wikipedia from './wikipedia.json'

const dictionary = {
'commonWords-ku': commonWords,
'firstNames-ku': firstnames,
'lastNames-ku': lastnames,
'wikipedia-ku': wikipedia,
}

export { dictionary, translations }
1 change: 1 addition & 0 deletions packages/languages/ku/src/lastnames.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
["Ahmed","Ali","Arslan","Avcı","Baran","Bozan","Çelik","Demir","Dilovan","Doğan","Durmuş","Ekinci","Erdoğan","Eren","Evîndar","Genç","Gül","Güneş","Karabulut","Karataş","Kaya","Kılıç","Koç","Kurt","Mehmet","Miran","Öztürk","Polat","Rojî","Rojîdar","Sarı","Şahin","Şimşek","Taş","Toprak","Torî","Tunç","Uçar","Yıldız","Yılmaz","Yusuf","Zana","Adar","Akgül","Akyol","Arî","Aydın","Başaran","Bayram","Baz","Bekir","Berxwedan","Boz","Cengiz","Cihan","Dikmen","Durak","Ertaş","Gezer","Giray","Gülbahar","Güzel","Hamit","Kadir","Karakaya","Karaman","Kavak","Kazim","Koçer","Koray","Kurban","Mazlum","Mutlu","Narin","Naz","Nazım","Nur","Özcan","Özer","Peker","Rêber","Şimşir","Süleyman","Taha","Tekin","Ulaş","Ünal","Vural","Yekta","Zerî","Zeydan","Zoro"]
60 changes: 60 additions & 0 deletions packages/languages/ku/src/translations.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
export default {
warnings: {
straightRow:
'Rêzên rast ên bişkokên li ser klavyeya we bi hêsanî têne texmîn kirin.',
keyPattern: 'Nimûneyên klavyeyê yên kurt têne texmîn kirin.',
simpleRepeat:
'Karakterên dubarekirî yên mîna "aaa" bi hêsanî têne texmîn kirin.',
extendedRepeat:
'Nimûneyên karakterê yên dubarekirî yên mîna "abcabcabc" hêsan têne texmîn kirin.',
sequences:
'Rêzên karakterên hevpar ên mîna "abc" bi hêsanî têne texmîn kirin.',
recentYears: 'Salên dawî texmînkirin hêsan e.',
dates: 'Dîrok hêsan têne texmîn kirin.',
topTen: 'Ev şîfreyek pir tê bikar anîn.',
topHundred: 'Ev şîfreyek pir caran tê bikaranîn e.',
common: 'Ev şîfreyek bi gelemperî tê bikar anîn.',
similarToCommon: 'Ev dişibe şîfreyek ku bi gelemperî tê bikar anîn.',
wordByItself: 'Gotinên yekane hêsan têne texmîn kirin.',
namesByThemselves: 'Nav an paşnavên yekane têne texmîn kirin.',
commonNames: 'Nav û paşnavên hevpar bi hêsanî têne texmîn kirin.',
userInputs: 'Pêdivî ye ku daneyên kesane an rûpelê têkildar tune.',
pwned:
'Şîfreya we ji ber binpêkirina daneyan li ser Înternetê hate eşkere kirin.',
},
suggestions: {
l33t: "Ji şûna tîpên pêşbînîkirî yên wekî '@' ji bo 'a' dûr bixin.",
reverseWords: 'Xwe ji rastnivîsîna berevajî ya peyvên hevpar dûr bixin.',
allUppercase: 'Hinekan, lê ne hemî tîpan, bi mezin bikin.',
capitalization: 'Ji tîpa yekem bêtir bi sermayê binivîsin.',
dates: 'Ji tarîx û salên ku bi we re têkildar in dûr bisekinin.',
recentYears: 'Ji salên dawî dûr bixin.',
associatedYears: 'Ji salên ku bi we re têkildar in dûr bikin.',
sequences: 'Ji rêzikên karakterên hevpar dûr bixin.',
repeated: 'Ji peyv û karakterên dubare dûr bikevin.',
longerKeyboardPattern:
'Nimûneyên klavyeyê yên dirêjtir bikar bînin û rêça nivîsandinê gelek caran biguhezînin.',
anotherWord: 'Peyvên ku kêm hevpar in zêde bikin.',
useWords: 'Gelek peyvan bikar bînin, lê ji hevokên hevpar dûr bixin.',
noNeed:
'Hûn dikarin şîfreyên bihêz bêyî karanîna sembol, hejmar an tîpên mezin biafirînin.',
pwned:
'Heke hûn vê şîfreyê li cîhek din bikar bînin, divê hûn wê biguherînin.',
},
timeEstimation: {
ltSecond: 'ji saniyeyekê kêmtir',
second: '{base} second',
seconds: '{base} saniyeyan',
minute: '{base} deqqe',
minutes: '{base} deqiqeyan',
hour: '{base} seet',
hours: '{base} seetan',
day: '{base} roj',
days: '{base} rojan',
month: '{base} meh',
months: '{base} mehan',
year: '{base} sal',
years: '{base} salan',
centuries: 'sedsalan',
},
}
1 change: 1 addition & 0 deletions packages/languages/ku/src/wikipedia.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
4 changes: 4 additions & 0 deletions packages/languages/ku/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../../tsconfig.json"
}