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

Change content language to Hindi #1637

Merged
merged 3 commits into from
Nov 26, 2023
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
target/
.idea/
.vscode/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/ai/elimu/util/db/DbContentImportHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@
// TODO: storyBook.setContentLicense();
// TODO: storyBook.setAttributionUrl();
storyBook.setReadingLevel(storyBookGson.getReadingLevel());
Image coverImage = imageDao.read(storyBookGson.getCoverImage().getId());
// Image coverImage = imageDao.read(storyBookGson.getCoverImage().getId());
Image coverImage = imageDao.read(1L);

Check warning on line 265 in src/main/java/ai/elimu/util/db/DbContentImportHelper.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/ai/elimu/util/db/DbContentImportHelper.java#L265

Added line #L265 was not covered by tests
storyBook.setCoverImage(coverImage);
storyBookDao.create(storyBook);

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pom.version=${project.version}

# The language of the educational content
# See https://github.com/elimu-ai/model/blob/main/src/main/java/ai/elimu/model/enums/Language.java
content.language=ENG
content.language=HIN

# Create free API key using https://www.covalenthq.com/platform/#/auth/register/
# It will be used to get ETH transaction data from https://www.covalenthq.com/docs/api/#get-/v1/{chain_id}/address/{address}/transactions_v2/
Expand Down