@vocab/core 1.3.1 → 1.4.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/README.md +1 -1
- package/dist/declarations/src/types.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -450,7 +450,7 @@ $ vocab pull --branch my-branch
|
|
|
450
450
|
|
|
451
451
|
When uploading translations, Phrase identifies keys that exist in the Phrase project, but were not
|
|
452
452
|
referenced in the upload. These keys can be deleted from Phrase by providing the
|
|
453
|
-
|
|
453
|
+
`--delete-unused-keys` flag to `vocab push`. E.g.
|
|
454
454
|
|
|
455
455
|
```sh
|
|
456
456
|
$ vocab push --branch my-branch --delete-unused-keys
|
|
@@ -51,6 +51,7 @@ export type TranslationFile<Language extends LanguageName, FormatFnByKey extends
|
|
|
51
51
|
*/
|
|
52
52
|
load: (language: Language) => Promise<void>;
|
|
53
53
|
};
|
|
54
|
+
export type TranslationKeys<Translations extends TranslationFile<any, ParsedFormatFnByKey>> = keyof Awaited<ReturnType<Translations['getMessages']>>;
|
|
54
55
|
export interface LanguageTarget {
|
|
55
56
|
name: LanguageName;
|
|
56
57
|
extends?: LanguageName;
|