Error 1 : Language not supported in translation workbench. fr_CA Not available for deploy for this organization.
Solution : This error could be thrown from Salesforce DX while create unlocked package version. To solve this, we need to provide of scratch org configuration file informing that package needs translation. It seems little off that why would unlocked package need path to scratch org , however this is how it is. Example file project-scratch-def.json
{
"orgName": "DemoScratch",
"edition": "Developer",
"features": [],
"settings": {
"chatterSettings": {
"enableChatter": true
},
"lightningExperienceSettings": {
"enableS1DesktopEnabled": true
},
"languageSettings": {
"enableTranslationWorkbench": true,
"enableEndUserLanguages": true,
"enablePlatformLanguages" : true
}
}
}
Also, note that edition is developer.
If you use edition enterprise and your unlocked package using some manage package component, it will start throwing various errors.
chances of getting error in enterprise edition lot higher compared to developer edition
Now, Sample command to create unlocked package version
sfdx force:package:version:create -p <package name> -d force-app -k <password> -w 10 -v <dev_hub_user_alias> -f config/project-scratch-def.json
You can refer this blog post for list of all frequently used SFDX commands.
Leave a Reply