@ethnolib/find-language 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,7 @@ interface ITagParts {
23
23
  }
24
24
  export declare function splitTag(tag: string): ITagParts;
25
25
  export declare function defaultRegionForLangTag(languageTag: string): IRegion | undefined;
26
+ export declare function formatDialectCode(dialect?: string): string;
26
27
  export declare function createTagFromOrthography(orthography: IOrthography): string;
27
28
  export declare function defaultDisplayName(language?: ILanguage, script?: IScript): string;
28
29
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A library for fuzzy-searching for languages and other utils for language choosers",
4
4
  "author": "SIL Global",
5
5
  "license": "MIT",
6
- "version": "0.1.10",
6
+ "version": "0.1.12",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "sideEffects": false,
@@ -1,6 +1,8 @@
1
1
  import { ILanguage, IScript } from './findLanguageInterfaces';
2
2
  export declare function filterScripts(scriptFilter: (value: IScript) => boolean, results: ILanguage[]): ILanguage[];
3
3
  export declare function modifyScripts(scriptModifier: (value: IScript) => IScript, results: ILanguage[]): ILanguage[];
4
+ export declare function makeIntoMacrolanguageEntry(langCode: string, results: ILanguage[]): ILanguage[];
5
+ export declare function markAsIndividualLanguage(langCode: string, results: ILanguage[]): ILanguage[];
4
6
  export declare function rawIsoCode(result: ILanguage): string | undefined;
5
7
  export declare function substituteInModifiedEntry(targetCode: string, getModifiedEntry: (result: ILanguage) => ILanguage, results: ILanguage[]): ILanguage[];
6
8
  export declare function filterOnLanguageCode(langCodeFilter: (value: string) => boolean, results: ILanguage[]): ILanguage[];