Skip to content

Commit

Permalink
chore: update init command success message (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar authored Jan 8, 2024
1 parent 09a79dc commit 3376543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ class GenerateAction implements NewAction<NoProperties, NoClient> {
private boolean isEnterprise;
private boolean withBrowser;

public static final String LINK = "https://support.crowdin.com/configuration-file/";
public static final String ENTERPRISE_LINK = "https://support.crowdin.com/enterprise/configuration-file/";

private final FilesInterface files;
private final String token;
private final String baseUrl;
Expand Down Expand Up @@ -76,10 +73,8 @@ public void act(Outputter out, NoProperties noProperties, NoClient noClient) {
}
files.writeToFile(
destinationPath.toString(), new ByteArrayInputStream(StringUtils.join(fileLines, "\n").getBytes(StandardCharsets.UTF_8)));
out.println(String.format(
RESOURCE_BUNDLE.getString("message.generate_successful"),
this.isEnterprise ? ENTERPRISE_LINK : LINK));

out.println(String.format(RESOURCE_BUNDLE.getString("message.generate_successful")));
} catch (Exception e) {
throw new RuntimeException(RESOURCE_BUNDLE.getString("error.create_file"), e);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/messages/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ message.already_exists=File @|bold '%s'|@ already exists. Fill it out accordingl
@|cyan https://developer.crowdin.com/configuration-file/#configuration-file-structure|@
message.generate_successful=%nYour configuration skeleton has been successfully generated. \
%nSpecify your source and translation paths in the files section. \
%nFor more details see @|cyan %s|@
%nFor more details see @|cyan https://crowdin.github.io/crowdin-cli/configuration|@
message.ask_project_directory=Your project directory
message.ask_is_enterprise=For Crowdin Enterprise
message.ask_auth_via_browser=Authorize via browser?
Expand Down

0 comments on commit 3376543

Please sign in to comment.