sourcecode911 / i18n-nationality Goto Github PK
View Code? Open in Web Editor NEWi18n-nationality names / alpha2 / alpha3 / Numeric
License: MIT License
i18n-nationality names / alpha2 / alpha3 / Numeric
License: MIT License
Usually citizens of Uzbekistan are called "Uzbek" not "Uzbekistani" based on https://en.wikipedia.org/wiki/Uzbeks as well
i18n-nationality/langs/en.json
Line 226 in a8d4315
WF
is not Wales / Welsh
, it's Wallis and Fortuna / Wallisian | Futunan
.
For example nationality of Principality of Monaco has two different name : Monacan and Monegasque also Saudi Arabia: Saudi Arabians and Saudis according to wikipedia.
Hello, I'm not seeing the Spanish support when I install the library, but I do see it on the master branch. Is the npm library not synced with the code? And if that's the case, any idea when we can see it updated?
In some languages — like mine, french — adjective could be plural or according to gender.
I'm men « français » my wife is « française » but my daughters are « françaises » but we both are « français »
masculin pluriel for « français » is unvariable.
but it's quite difficult to globalize to other languages ?
Altho it
and no
are in the source code they aren't publish to npm.
Steps to reproduce:
npm init -y
npm install i18n-nationality
ls node_modules/i18n-nationality/langs # de.json en.json fr.json
Nationality of people from Iceland is "Icelandic" not "Icelander".
Hi there,
i tried to modify the code to run in typescript
import { Component, VERSION } from "@angular/core";
import * as nationalities from "i18n-nationality";
@Component({
selector: "my-app",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.css"]
})
export class AppComponent {
name = "Angular " + VERSION.major;
ngOnInit() {
console.log(nationalities.getName("US", "en"));
}
}
Result:
"undefined"
There ain't any error in my program. Any clue?
When installing i18n-nationality a .git folder is included in node_modules/i18n-nationality which causes this error when installing or uninstalling other modules.
npm ERR! code EISGIT
npm ERR! path [...]/node_modules/i18n-nationality
npm ERR! git [...]/node_modules/i18n-nationality: Appears to be a git repo or submodule.
npm ERR! git [...]/node_modules/i18n-nationality
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
If I remove the .git folder I don't get this error.
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.