WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Bug: Array Duplication in Repeated Translations #79

@fadkeabhi

Description

@fadkeabhi

Description

When translating a file containing an array structure multiple times, the array size increases in the translated output file instead of maintaining the original structure or skipping already translated elements.

Steps to Reproduce

  1. Create an input file with an array structure
  2. Perform initial translation
  3. Run translation again on the same file

Current Behavior

The array elements are duplicated in the output file with each subsequent translation, leading to unwanted array growth.

Related Information

Related to PR #68 (feat: skip already translated keys)
I found and fixed this array duplication issue. I'll be submitting a PR with this fix shortly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions