@ethnolib/find-language 0.0.23 → 0.1.0

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.
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.0.23",
6
+ "version": "0.1.0",
7
7
  "main": "./index.js",
8
8
  "types": "./index.d.ts",
9
9
  "scripts": {
@@ -1,5 +1,5 @@
1
- import { IRegion, IScript } from './findLanguageInterfaces';
1
+ import { ILanguage, IRegion, IScript } from './findLanguageInterfaces';
2
2
  export declare function getAllRegions(): IRegion[];
3
3
  export declare function getRegionBySubtag(code: string): IRegion | undefined;
4
4
  export declare function getAllScripts(): IScript[];
5
- export declare function getScriptBySubtag(code: string): IScript | undefined;
5
+ export declare function getScriptForLanguage(scriptCode: string, language: ILanguage): IScript | undefined;