Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update init command success message #704

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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