Skip to content

Add .ftl file upload support#6473

Open
Velken wants to merge 2 commits intospace-wizards:masterfrom
Velken:admin-upload-ftl
Open

Add .ftl file upload support#6473
Velken wants to merge 2 commits intospace-wizards:masterfrom
Velken:admin-upload-ftl

Conversation

@Velken
Copy link
Member

@Velken Velken commented Mar 19, 2026

Added support for uploading .ftl files, by adding /Upload as a path on localization manager and making the game reload them.

Admins uploading custom .ftl must do the following format: /**/Locale/<language-code>/*.ftl
Example: /TestUpload/Locale/en-US/MyFluentFile.ftl

Solves this and this issues from content.

@Velken Velken added T: New Feature Type: New feature Priority: 3-Not Required D3: Low Not impossible to figure out for newer coders, and simple for experienced ones. A: Localization labels Mar 21, 2026
@moonheart08
Copy link
Contributor

Doesn't this mean you can only upload one ftl file per language..?

@Velken
Copy link
Member Author

Velken commented Mar 22, 2026

Doesn't this mean you can only upload one ftl file per language..?

yes, but would you need to upload multiple for admin uploads?

If you know a non-ugly way of having /Uploaded/**/<language-code>/* folder path, I'd prefer to do that, but I couldn't think of a non-ugly way.

@moonheart08
Copy link
Contributor

Doesn't this mean you can only upload one ftl file per language..?

yes, but would you need to upload multiple for admin uploads?

If you know a non-ugly way of having /Uploaded/**/<language-code>/* folder path, I'd prefer to do that, but I couldn't think of a non-ugly way.

You can upload more than one thing at a time, hence my objection.

@Velken
Copy link
Member Author

Velken commented Mar 22, 2026

Doesn't this mean you can only upload one ftl file per language..?

yes, but would you need to upload multiple for admin uploads?
If you know a non-ugly way of having /Uploaded/**/<language-code>/* folder path, I'd prefer to do that, but I couldn't think of a non-ugly way.

You can upload more than one thing at a time, hence my objection.

well, you would include all the fluent strings in the same file, also, technically, you can have multiple .ftl files, if you put each in a different subfolder /Uploaded/1/en-US.ftl and /Uploaded/2/en-US.ftl would both be loaded correctly into the game

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: Localization D3: Low Not impossible to figure out for newer coders, and simple for experienced ones. Priority: 3-Not Required T: New Feature Type: New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants