From 07037c6652f755467d9849a3ebe4dae690d4f6e4 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 3 Dec 2024 00:48:21 -0600 Subject: [PATCH] handle sub containers --- libs/stringtable/src/rapify.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/libs/stringtable/src/rapify.rs b/libs/stringtable/src/rapify.rs index 9d6f4fbe..affeeeea 100644 --- a/libs/stringtable/src/rapify.rs +++ b/libs/stringtable/src/rapify.rs @@ -60,7 +60,18 @@ fn rapify(project: &Project) -> Option { all_translations.push(Vec::new()); } + + for package in project.packages() { + for package_inner in package.containers() { // ugh + for key in package_inner.keys() { + all_keys.push(key.id().into()); + // Make sure we can translate everything + if !get_translations(key, &mut all_translations) { + return None; + } + } + } for key in package.keys() { all_keys.push(key.id().into()); // Make sure we can translate everything