Skip to content

Commit

Permalink
SdkLoader: Use TRANSLATIONS_JSON property from SdkResource
Browse files Browse the repository at this point in the history
  • Loading branch information
bertrand-lorentz committed Jan 12, 2024
1 parent ddeab76 commit ac8480e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ public class SdkLoader {
public static final Path EXAMPLE_NOTICES = Path.of("examples", "notices");
public static final Path EXAMPLE_REPORTS = Path.of("examples", "reports");

// TODO: Use constant from SdkResource in ECL when it is available (TEDEFO-2707)
public static final Path TRANSLATIONS_JSON = Path.of("translations", "translations.json");

private final Path sdkRoot;
private final ObjectMapper objectMapper;

Expand Down Expand Up @@ -183,7 +180,7 @@ public NoticeTypeSdk getNoticeTypeSdk(String noticeId, Path sdkRoot) throws IOEx

public TranslationsIndex getTranslationsIndex() throws IOException {
return loadJsonFile(TranslationsIndex.class,
Path.of(sdkRoot.toString(), TRANSLATIONS_JSON.toString()));
Path.of(sdkRoot.toString(), SdkResource.TRANSLATIONS_JSON.getPath().toString()));
}

public Set<Label> getLabels()
Expand Down

0 comments on commit ac8480e

Please sign in to comment.