Skip to content

[Feature Proposal] Allow splitting up localization files #12

@pbone64

Description

@pbone64

Description

Currently, you need to add all your translations to the markup equivalent of a godclass.
I propose supporting the following structure:

Localization
|- en-US
  |- Items.toml
  |- Npcs.toml
|- zh-Hans
  |- Items.toml
  |- Npcs.toml

When loading localizations, Tea will instead load the contents of all the files under each directory instead of only one file

What does this proposal attempt to solve or improve?

As I said before, the current localization file layout is the markup equivalent of godclassing, making organization and editing much harder.

What (other) solutions may be considered?

Another possibility is allowing for more subfolders within each locale folder:

Localization
|- en-US
  | - NPCs
    | - GenericEnemies.toml
      | - Bosses.toml
      | - TownNPCs.toml
  | - Items
    | - Weapons
      | - Melee.toml
      | - Ranged.toml
    | - Tools
      | - Pickaxes.toml
      | - Axes.toml
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: unresolvedThe proposed change has not been implemented or the reported bug has not been fixed.type: feature proposalIndicates this issue is a feature proposal.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions