Releases: seek-oss/vocab
@vocab/cli@1.4.0
Minor Changes
-
161d698
#170 Thanks @jasoncheng-jora! - Error on no translation for global keyBy default,
vocab pull
will not error if a translation is missing in Phrase for a translation with a global key.
If you want to throw an error in this situation, pass the--error-on-no-global-key-translation
flag:EXAMPLE USAGE:
vocab pull --error-on-no-global-key-translation
Patch Changes
@vocab/webpack@1.2.3
Patch Changes
- Updated dependencies [
09b7179
]:- @vocab/core@1.4.0
@vocab/types@1.3.2
Patch Changes
- Updated dependencies [
09b7179
]:- @vocab/core@1.4.0
@vocab/react@1.1.7
Patch Changes
- Updated dependencies [
09b7179
]:- @vocab/core@1.4.0
@vocab/phrase@1.2.8
Patch Changes
- Updated dependencies [
09b7179
]:- @vocab/core@1.4.0
@vocab/core@1.4.0
Minor Changes
-
09b7179
#154 Thanks @askoufis! - AddTranslationKeys
typeThe
TranslationKeys
type can be used to get a string literal union of all the translation keys used in a translation file.EXAMPLE USAGE
// .vocab/en.translations.json { "Hello": { "message": "Hello" }, "Goodbye": { "message": "Goodbye" } }
After running
vocab compile
:import type { TranslationKeys } from '@vocab/core'; import translations from './.vocab'; // 'Hello' | 'Goodbye' type Keys = TranslationKeys<typeof translations>;
@vocab/cli@1.3.7
Patch Changes
- Updated dependencies [
09b7179
]:- @vocab/core@1.4.0
- @vocab/phrase@1.2.8
@vocab/phrase@1.2.7
Patch Changes
-
45cd995
#152 Thanks @askoufis! - Upload translations in a separate file per languageFixes a regression introduced when support for Phrase tags was added.
Part of adding support for tags involved swapping to uploading translations in a CSV file instead of a JSON file.
This had the unintended (and undocumented) side-effect of creating missing languages in the target Phrase project.
This is unnecessary in the case where the language doesn't actually have any translations and/or derives its translations from a parent language.
Only languages that actually have translations (i.e. they have messages defined in atranslations.json
file) will be created in the target Phrase project.
@vocab/cli@1.3.6
Patch Changes
- Updated dependencies [
45cd995
]:- @vocab/phrase@1.2.7