Skip to content

Commit

Permalink
misc: Remove diacritic from 'Bokmål'. (#341)
Browse files Browse the repository at this point in the history
Closes #335.
  • Loading branch information
vxern authored Jun 20, 2024
2 parents 885650b + 464426e commit 524a4ce
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion source/constants/contributions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default Object.freeze({
completion: 4,
contributors: [contributors.nemokosch],
},
"Norwegian/Bokmål": {
"Norwegian/Bokmal": {
flag: "🇳🇴",
completion: 8,
contributors: [contributors.telemaniak],
Expand Down
2 changes: 1 addition & 1 deletion source/constants/dictionaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const dictionariesByLanguage = Object.freeze({
German: ["wiktionary"],
Greek: ["wiktionary"],
Hungarian: ["wiktionary"],
"Norwegian/Bokmål": ["wiktionary"],
"Norwegian/Bokmal": ["wiktionary"],
Polish: ["wiktionary"],
Romanian: ["dexonline", "wiktionary"],
Russian: ["wiktionary"],
Expand Down
8 changes: 4 additions & 4 deletions source/constants/languages/detection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const languages = Object.freeze({
"Nauru",
"Nepali",
"Newar",
"Norwegian/Bokmål",
"Norwegian/Bokmal",
"Norwegian/Nynorsk",
"Occitan",
"Odia",
Expand Down Expand Up @@ -216,7 +216,7 @@ const languages = Object.freeze({
"Lithuanian",
"Macedonian",
"Mongolian",
"Norwegian/Bokmål",
"Norwegian/Bokmal",
"Persian",
"Polish",
"Portuguese/European", // European/Brazilian Portuguese
Expand Down Expand Up @@ -524,7 +524,7 @@ const languageToLocale = Object.freeze({
Nauru: "na",
Nepali: "ne",
Newar: "new",
"Norwegian/Bokmål": "no",
"Norwegian/Bokmal": "no",
"Norwegian/Nynorsk": "nn",
Occitan: "oc",
Odia: "or",
Expand Down Expand Up @@ -636,7 +636,7 @@ const languageToLocale = Object.freeze({
Lithuanian: "lit",
Macedonian: "mkd",
Mongolian: "mon",
"Norwegian/Bokmål": "nob",
"Norwegian/Bokmal": "nob",
Persian: "pes",
Polish: "pol",
"Portuguese/European": "por",
Expand Down
2 changes: 1 addition & 1 deletion source/constants/languages/learning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function getLocaleByLanguage(language: Language): Locale {
const wiktionaryLanguageNames = Object.freeze({
"English/American": "English",
"English/British": "English",
"Norwegian/Bokmål": "Norwegian Bokmål",
"Norwegian/Bokmal": "Norwegian Bokmål",
"Armenian/Western": "Armenian",
"Armenian/Eastern": "Armenian",
} satisfies Record<WithBaseLanguage<LearningLanguage>, string>);
Expand Down
8 changes: 4 additions & 4 deletions source/constants/languages/localisation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const languages = Object.freeze({
"German",
"Greek",
"Hungarian",
"Norwegian/Bokmål",
"Norwegian/Bokmal",
"Polish",
"Romanian",
"Russian",
Expand All @@ -29,7 +29,7 @@ const languages = Object.freeze({
"German",
"Greek",
"Hungarian",
"Norwegian/Bokmål",
"Norwegian/Bokmal",
"Polish",
"Romanian",
"Russian",
Expand All @@ -51,7 +51,7 @@ const languageToLocale = Object.freeze({
German: "de",
Greek: "el",
Hungarian: "hu",
"Norwegian/Bokmål": "no",
"Norwegian/Bokmal": "no",
Polish: "pl",
Romanian: "ro",
Russian: "ru",
Expand All @@ -71,7 +71,7 @@ const languageToLocale = Object.freeze({
Greek: "ell",
German: "deu",
Hungarian: "hun",
"Norwegian/Bokmål": "nob",
"Norwegian/Bokmal": "nob",
Polish: "pol",
Romanian: "ron",
Russian: "rus",
Expand Down
8 changes: 4 additions & 4 deletions source/constants/languages/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const languages = Object.freeze({
"Korean",
"Lithuanian",
"Latvian",
"Norwegian/Bokmål",
"Norwegian/Bokmal",
"Dutch",
"Polish",
"Portuguese/Brazilian",
Expand Down Expand Up @@ -119,7 +119,7 @@ const languages = Object.freeze({
"Mizo",
"Mongolian",
"Nepali",
"Norwegian/Bokmål",
"Norwegian/Bokmal",
"Odia", // Oriya
"Oromo",
"Pashto",
Expand Down Expand Up @@ -317,7 +317,7 @@ const languageToLocale = Object.freeze({
Korean: "KO",
Lithuanian: "LT",
Latvian: "LV",
"Norwegian/Bokmål": "NB",
"Norwegian/Bokmal": "NB",
Dutch: "NL",
Polish: "PL",
"Portuguese/Brazilian": "PT-BR",
Expand Down Expand Up @@ -417,7 +417,7 @@ const languageToLocale = Object.freeze({
Mizo: "lus",
Mongolian: "mn",
Nepali: "ne",
"Norwegian/Bokmål": "no",
"Norwegian/Bokmal": "no",
Odia: "or",
Oromo: "om",
Pashto: "ps",
Expand Down
4 changes: 2 additions & 2 deletions source/constants/localisations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const localisations = Object.freeze({
German: german,
Greek: greek,
Hungarian: hungarian,
"Norwegian/Bokmål": norwegian,
"Norwegian/Bokmal": norwegian,
Polish: polish,
Romanian: romanian,
Russian: russian,
Expand Down Expand Up @@ -221,7 +221,7 @@ const localisations = Object.freeze({
Nepali: "languages.nepali",
Newar: "languages.newar",
Norwegian: "languages.norwegian",
"Norwegian/Bokmål": "languages.norwegian.bokmal",
"Norwegian/Bokmal": "languages.norwegian.bokmal",
"Norwegian/Nynorsk": "languages.norwegian.nynorsk",
Occitan: "languages.occitan",
Odia: "languages.odia",
Expand Down
2 changes: 1 addition & 1 deletion source/library/adapters/dictionaries/wiktionary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WiktionaryAdapter extends DictionaryAdapter<Wiktionary.Entry[]> {
"German",
"Greek",
"Hungarian",
"Norwegian/Bokmål",
"Norwegian/Bokmal",
"Polish",
"Romanian",
"Russian",
Expand Down
2 changes: 1 addition & 1 deletion test/source/constants/languages/learning.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ describe("getLocaleByLanguage()", () => {
describe("getWiktionaryLanguageName()", () => {
it("returns the Wiktionary name for the learning language if available.", () => {
expect(getWiktionaryLanguageName("English/American")).to.equal("English");
expect(getWiktionaryLanguageName("Norwegian/Bokmål")).to.equal("Norwegian Bokmål");
expect(getWiktionaryLanguageName("Norwegian/Bokmal")).to.equal("Norwegian Bokmål");
});
});

0 comments on commit 524a4ce

Please sign in to comment.