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

Refactored preproc functions #135

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Refactored preproc functions #135

wants to merge 10 commits into from

Conversation

stewerner
Copy link

@stewerner stewerner commented Jul 2, 2024

Refactored preproc functions

  • extract_key_expressions is now faster by directly utilizing library(stringi) instead of library(stringr)
  • Added function prepare_translation_table (based on {data.table} which is called by save_to_json and save_to_csv. It allows to read-in previously existing translation files (json or csv) and updates them without overwriting existing translations (implemented to realize create_translation_file's update parameter)
  • create_translation_file is now able to search through multiple R scripts. Furthermore, It gained the parameters key_language, translated_languages and update. The languages are reflected in the resulting translation file with placeholder ""
  • amended tests

stewerner added 10 commits July 2, 2024 13:58
set simplify = TRUE to correctly catch multipl i18n$t tags in one line
Allow multiline key expressions
correctly handle escaped newlines
added a placeholder parameter
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.

1 participant