@@ -50,18 +50,18 @@ export default async function setup(input: CmdRunContext) {
5050 {
5151 title : "Selecting localization provider" ,
5252 task : async ( ctx , task ) => {
53- const isPseudo = ctx . flags . pseudo || ctx . config ?. dev ?. usePseudotranslator ;
53+ const isPseudo =
54+ ctx . flags . pseudo || ctx . config ?. dev ?. usePseudotranslator ;
5455 const provider = isPseudo ? "pseudo" : ctx . config ?. provider ;
55- const vNext = ctx . config ?. vNext ;
56- ctx . localizer = createLocalizer ( provider , ctx . flags . apiKey , vNext ) ;
56+ const engineId = ctx . config ?. engineId ;
57+ ctx . localizer = createLocalizer ( provider , engineId , ctx . flags . apiKey ) ;
5758 if ( ! ctx . localizer ) {
5859 throw new Error (
5960 "Could not create localization provider. Please check your i18n.json configuration." ,
6061 ) ;
6162 }
6263 task . title =
63- ctx . localizer . id === "Lingo.dev" ||
64- ctx . localizer . id === "Lingo.dev vNext"
64+ ctx . localizer . id === "Lingo.dev"
6565 ? `Using ${ chalk . hex ( colors . green ) ( ctx . localizer . id ) } provider`
6666 : ctx . localizer . id === "pseudo"
6767 ? `Using ${ chalk . hex ( colors . blue ) ( "pseudo" ) } mode for testing`
@@ -71,8 +71,7 @@ export default async function setup(input: CmdRunContext) {
7171 {
7272 title : "Checking authentication" ,
7373 enabled : ( ctx ) =>
74- ( ctx . localizer ?. id === "Lingo.dev" ||
75- ctx . localizer ?. id === "Lingo.dev vNext" ) &&
74+ ctx . localizer ?. id === "Lingo.dev" &&
7675 ! ctx . flags . pseudo &&
7776 ! ctx . config ?. dev ?. usePseudotranslator ,
7877 task : async ( ctx , task ) => {
@@ -87,9 +86,7 @@ export default async function setup(input: CmdRunContext) {
8786 } ,
8887 {
8988 title : "Validating configuration" ,
90- enabled : ( ctx ) =>
91- ctx . localizer ?. id !== "Lingo.dev" &&
92- ctx . localizer ?. id !== "Lingo.dev vNext" ,
89+ enabled : ( ctx ) => ctx . localizer ?. id !== "Lingo.dev" ,
9390 task : async ( ctx , task ) => {
9491 const validationStatus = await ctx . localizer ! . validateSettings ! ( ) ;
9592 if ( ! validationStatus . valid ) {
@@ -103,9 +100,7 @@ export default async function setup(input: CmdRunContext) {
103100 {
104101 title : "Initializing localization provider" ,
105102 async task ( ctx , task ) {
106- const isLingoDotDev =
107- ctx . localizer ! . id === "Lingo.dev" ||
108- ctx . localizer ! . id === "Lingo.dev vNext" ;
103+ const isLingoDotDev = ctx . localizer ! . id === "Lingo.dev" ;
109104 const isPseudo = ctx . localizer ! . id === "pseudo" ;
110105
111106 const subTasks = isLingoDotDev
0 commit comments