ladjs / country-language Goto Github PK
View Code? Open in Web Editor NEWQuery any country's spoken languages or countries where a language is spoken.
License: MIT License
Query any country's spoken languages or countries where a language is spoken.
License: MIT License
Node.js version: v18.12.1
OS version: OSX Venture 13.1
Description:
TypeError exception triggered on some countries without languages array within countries
object in data.json
Exception triggered
for (const l of langs) {
^
TypeError: langs is not iterable
should just return []
// empty array
CountryLanguage.getCountryLanguages("PS")
I cannot fined types for this package. I want to use it in a typescript website. Any idea where i can find the types?
This is the error i get:
djs/country-language'. 'D:/deploy/node_modules/@ladjs/country-language/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/ladjs__country-language` if it exists or add a new declaration (.d.ts) file containing `declare module
'@ladjs/country-language';`
✅ I have searched through GitHub issues for similar issues.
✅ I have completely read through the README and documentation.
vscode displays numerous warnings regarding the presence of en dashes in place of hyphens
The character U+2013 "–" could be confused with the character U+002d "-", which is more common in source code
https://github.dev/ladjs/country-language/blob/master/data.json
Invalid ç
in Provençal at line 7219
https://github.com/ladjs/country-language/blob/master/data.json#L7219
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.