Skip to content

Added $translateText and $chalkLog#370

Merged
xNickyDev merged 16 commits into
tryforge:devfrom
Project-Econome:dev
Apr 7, 2025
Merged

Added $translateText and $chalkLog#370
xNickyDev merged 16 commits into
tryforge:devfrom
Project-Econome:dev

Conversation

@Project-Econome

Copy link
Copy Markdown

This uses an already existing dependency that is used within ForgeScript so no extra packages have been added.

Check Off List:
Does Function work ✅
Dist Been Created ✅
In the Correct Folder Path ✅

@xNickyDev xNickyDev changed the title Added $translateText Added $translateText and $chalkLog Apr 7, 2025

@xNickyDev xNickyDev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please commit the suggested changes and compile them in a new commit.

$translateText[] now has the option to return the response as JSON object. Useful to receive more information about the translation.

Also, I've changed $chalkLog[]. It now supports all available styles rather than just the color. If an invalid style was provided then it will be simply ignored. If all styles are invalid then the plain text will be logged to the console without any styling. Now this function is more useful and allows more customization :)

Comment thread src/native/other/translateText.ts Outdated
Comment thread src/native/other/translateText.ts Outdated
Comment thread src/native/other/translateText.ts Outdated
Comment thread src/native/other/translateText.ts Outdated
Comment thread src/native/logging/chalkLog.ts Outdated
Comment thread src/native/logging/chalkLog.ts Outdated
Comment thread src/native/logging/chalkLog.ts Outdated
Comment thread src/native/logging/chalkLog.ts Outdated
Comment thread src/native/other/translateText.ts
Comment thread src/native/other/translateText.ts Outdated
Project Econome and others added 12 commits April 7, 2025 19:52
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
Co-authored-by: Nicky <111157596+xNickyDev@users.noreply.github.com>
@Project-Econome

Copy link
Copy Markdown
Author

All Fixed.

@xNickyDev

Copy link
Copy Markdown
Member

Thank you for your work!

@xNickyDev
xNickyDev merged commit 4658464 into tryforge:dev Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants