-
Notifications
You must be signed in to change notification settings - Fork 76
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
ozgursarikamis
wants to merge
1
commit into
zxcvbn-ts:master
Choose a base branch
from
ozgursarikamis:kurdish-kurmanji-language
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The closing bracket is misplaced. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../../../tsconfig.json" | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The closing bracket is misplaced. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this: