Skip to content

Commit

Permalink
Merge pull request #2 from 365talents/feat/add-slovaquie
Browse files Browse the repository at this point in the history
feat: add "slovaquie" (slovakia in french)
  • Loading branch information
ducher authored Mar 20, 2024
2 parents 3fbc047 + 4fc0b54 commit 0781bed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion data/countries.csv
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ SG;Singapore;Singapore, Singap[u]r
SH;Saint Helena;(St|Saint) H?elena
SI;Slovenia;E?Slov[e]nij?[ae]
SJ;Svalbard and Jan Mayen;Svalbard [&] Jan Mayen
SK;Slovakia;Slovak Republic, Slovakia, Slovensk[á] Republika, Slovensko
SK;Slovakia;Slovak Republic, Slovakia, Slovensk[á] Republika, Slovensko, Slovaquie
SL;Sierra Leone;Sierra Leone
SM;San Marino;San Marino, Saint-Marin
SN;Senegal;S[e]n[e]gal
Expand Down
9 changes: 9 additions & 0 deletions examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ var romania = countryDetector.detect("FR: J'ai vécu en Roumanie.");
*/
console.log(romania);

// handles Roumanie in French
var slovakia = countryDetector.detect("FR: J'ai vécu en Slovaquie.");
/*
[
{ iso3166: 'SK', name: 'Slovakia', type: 'country', matches: [ 'Slovaquie'] }
]
*/
console.log(slovakia);

// handles special characters and emojis
var special = countryDetector.detect("Adoro❤️ o 🇧🇷Rio~de~Janeiro💃🏼 !");
/*
Expand Down

0 comments on commit 0781bed

Please sign in to comment.