Skip to content

Commit

Permalink
fix: informal language
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuzynow committed Jan 4, 2024
1 parent d40b088 commit 401d53c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ private String fetchTranslationsAsString(String languageCode, Dialect dialect) {
}

private String fetchDefaultTranslations(String translationComponentName, String languageCode, Dialect dialect) {
String translationFilename = getTranslationFilename(
translationComponentName + "." + languageCode
+ TranlationMangementServiceApiClient.getDialectSuffix(dialect));
var inputStream = TranslationService.class.getResourceAsStream(
getTranslationFilename(translationComponentName + "." + languageCode + tranlationMangementServiceApiClient.getDialectSuffix(dialect)));
translationFilename);
if (inputStream == null) {
return "{}";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public String tryFetchTranslationsFromTranslationManagementService(String projec
return response.getBody();
}

public String getDialectSuffix(Dialect dialect) {
public static String getDialectSuffix(Dialect dialect) {
if (dialect == null) {
return StringUtils.EMPTY;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private void givenAnEmailList(LanguageCode languageCode) {
var email = new MailDTO();
email.setEmail(RandomStringUtils.randomAlphanumeric(32));
email.setTemplate("reassign-confirmation-notification");
email.setDialect(Dialect.INFORMAL);
email.setDialect(Dialect.FORMAL);

var nameRecipient = new TemplateDataDTO()
.key("name_recipient")
Expand Down

0 comments on commit 401d53c

Please sign in to comment.