@@ -109,18 +109,18 @@ public function init() {
109109
110110 $ this ->moduleJsPath = "{$ this ->urls ->$ this }assets/scripts/ " ;
111111 $ this ->moduleCssPath = "{$ this ->urls ->$ this }assets/styles/ " ;
112- }
113112
114- /**
115- * Executes module when PW is ready
116- * @return void
117- */
118- public function ready () {
119113 $ this ->fluencyConfig = (new FluencyConfig ())->getConfigData ();
120114 $ this ->translationCache = new TranslationCache ();
121115 $ this ->engineLanguagesCache = new EngineLanguagesCache ();
122116 $ this ->initializeTranslationEngine ();
117+ }
123118
119+ /**
120+ * Executes admin UI when PW is ready
121+ * @return void
122+ */
123+ public function ready () {
124124 if (!$ this ->moduleShouldInitInAdmin ()) {
125125 return false ;
126126 }
@@ -237,9 +237,7 @@ public function insertApiUsageTableFieldsetAssets(): void {
237237 * @return bool
238238 */
239239 public function inputfieldTranslationIsReady (): bool {
240- return $ this ->translationEngineIsReady () &&
241- $ this ->getDefaultConfiguredLanguage () &&
242- count ($ this ->getConfiguredLanguages ()) >= 2 ;
240+ return $ this ->translationEngineIsReady () && count ($ this ->getConfiguredLanguages ()) >= 2 ;
243241 }
244242
245243 /**
@@ -389,20 +387,6 @@ public function getUnconfiguredLanguages(): array {
389387 return $ this ->unconfiguredLanguages = array_values ($ unconfiguredLanguages );
390388 }
391389
392- /**
393- * Get the default language configured in Fluency.
394- *
395- * #pw-group-Fluency-Module-Configuration-Data
396- *
397- * @return ConfiguredLanguageData|null
398- *
399- * Reference `Fluency/app/DataTransferObjects/ConfiguredLanguageData.php`
400- */
401- // public function getDefaultConfiguredLanguage(): ?ConfiguredLanguageData {
402- // return $this->getConfiguredLanguages()->getDefault();
403- // }
404-
405-
406390 /**
407391 * Gets all configuration data in one object. Can be passed into the ProcessWire JavaScript
408392 * config object
0 commit comments