Run command from step 1 (info-text = info-text will be commented in test.ftl)
Comment help_cmd() function in main.py
Run command from step 1 (help-text = help-text will be commented in test.ftl and # info-text = info-text will be commented twice)
Expected behavior
help-text = help-text and info-text = info-text should be commented once.
Keys should be:
# help-text = help-text
# info-text = info-text
Current behavior
If info-text = info-text was commented before - "Extract" will comment it again if we remove help-text = help-text from code and re-run extract process
Foreword
Steps
For non-windows users - replace "\" with "/"
python -m aiogram_i18n extract -i '.\bot' -o '.\locales\test.ftl' -cm -k 'i18n' --locales 'uk'
info_cmd()
function inmain.py
info-text = info-text
will be commented intest.ftl
)help_cmd()
function inmain.py
help-text = help-text
will be commented intest.ftl
and# info-text = info-text
will be commented twice)Expected behavior
help-text = help-text
andinfo-text = info-text
should be commented once.Keys should be:
Current behavior
If
info-text = info-text
was commented before - "Extract" will comment it again if we removehelp-text = help-text
from code and re-run extract processKeys:
Code to reproduce bug
Requiremets