mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Do not load files under Locale/ not ending with .ftl.
Will ignore stuff like .DS_Store/.directory/thumbs.db
This commit is contained in:
@@ -427,7 +427,9 @@ namespace Robust.Shared.Localization
|
||||
|
||||
var root = new ResourcePath($"/Locale/{culture.Name}/");
|
||||
|
||||
var files = resourceManager.ContentFindFiles(root).ToArray();
|
||||
var files = resourceManager.ContentFindFiles(root)
|
||||
.Where(c => c.Filename.EndsWith(".ftl", StringComparison.InvariantCultureIgnoreCase))
|
||||
.ToArray();
|
||||
|
||||
var resources = files.AsParallel().Select(path =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user