Skip to content

Commit

Permalink
add new translation keys
Browse files Browse the repository at this point in the history
  • Loading branch information
audreyality committed Jan 15, 2025
1 parent 25bdae9 commit 083c8ce
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
8 changes: 7 additions & 1 deletion libs/tools/generator/core/src/metadata/algorithm-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ export type AlgorithmMetadata = {
/** labels the generate action */
generateCredential: string;

/** labels the generated output */
/** message informing users when the generator produces a new credential */
credentialGenerated: string;

/* labels the action that assigns a generated value to a domain object */
useCredential: string;

/** labels the generated output */
credentialType: string;

/** labels the copy output action */
copyCredential: string;
};
Expand Down
4 changes: 3 additions & 1 deletion libs/tools/generator/core/src/metadata/email/catchall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ const catchall: GeneratorMetadata<CatchallGenerationOptions> = deepFreeze({
i18nKeys: {
name: "catchallEmail",
description: "catchallEmailDesc",
credentialType: "email",
generateCredential: "generateEmail",
credentialGenerated: "email",
credentialGenerated: "emailGenerated",
copyCredential: "copyEmail",
useCredential: "useThisEmail",
},
capabilities: {
autogenerate: true,
Expand Down
6 changes: 4 additions & 2 deletions libs/tools/generator/core/src/metadata/email/plus-address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ const plusAddress: GeneratorMetadata<SubaddressGenerationOptions> = deepFreeze({
i18nKeys: {
name: "plusAddressedEmail",
description: "plusAddressedEmailDesc",
credentialType: "email",
generateCredential: "generateEmail",
credentialGenerated: "email",
credentialGenerated: "emailGenerated",
copyCredential: "copyEmail",
useCredential: "useThisEmail",
},
capabilities: {
autogenerate: true,
Expand Down Expand Up @@ -60,7 +62,7 @@ const plusAddress: GeneratorMetadata<SubaddressGenerationOptions> = deepFreeze({
constraints: {
default: {},
create(_policy, context) {
return new SubaddressConstraints(context.email);
return new SubaddressConstraints(context.email ?? "");
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ const passphrase: GeneratorMetadata<PassphraseGenerationOptions> = {
weight: 110,
i18nKeys: {
name: "passphrase",
credentialType: "passphrase",
generateCredential: "generatePassphrase",
credentialGenerated: "passphrase",
credentialGenerated: "passphraseGenerated",
copyCredential: "copyPassphrase",
useCredential: "useThisPassphrase",
},
capabilities: {
autogenerate: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ const password: GeneratorMetadata<PasswordGeneratorSettings> = deepFreeze({
i18nKeys: {
name: "password",
generateCredential: "generatePassword",
credentialGenerated: "password",
credentialGenerated: "passwordGenerated",
credentialType: "password",
copyCredential: "copyPassword",
useCredential: "useThisPassword",
},
capabilities: {
autogenerate: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ const effWordList: GeneratorMetadata<EffUsernameGenerationOptions> = deepFreeze(
weight: 400,
i18nKeys: {
name: "randomWord",
credentialType: "username",
generateCredential: "generateUsername",
credentialGenerated: "username",
credentialGenerated: "usernameGenerated",
copyCredential: "copyUsername",
useCredential: "useThisUsername",
},
capabilities: {
autogenerate: true,
Expand Down

0 comments on commit 083c8ce

Please sign in to comment.