mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-11-04 07:15:46 +00:00 
			
		
		
		
	Translation fix (#424)
* Fix locale header - Moving to new framework meant that Intl.getCurrentLocale was no longer working * Update release notes * Fix typo in pubspec.yaml * Clear cached values when locale is changed * Add extra context check
This commit is contained in:
		@@ -1,4 +1,5 @@
 | 
			
		||||
import "package:flutter/material.dart";
 | 
			
		||||
import "package:inventree/api.dart";
 | 
			
		||||
import "package:one_context/one_context.dart";
 | 
			
		||||
 | 
			
		||||
import "package:adaptive_theme/adaptive_theme.dart";
 | 
			
		||||
@@ -120,6 +121,9 @@ class _InvenTreeAppSettingsState extends State<InvenTreeAppSettingsWidget> {
 | 
			
		||||
 | 
			
		||||
        // Refresh the entire app locale
 | 
			
		||||
        InvenTreeApp.of(context)?.setLocale(locale);
 | 
			
		||||
 | 
			
		||||
        // Clear the cached status label information
 | 
			
		||||
        InvenTreeAPI().clearStatusCodeData();
 | 
			
		||||
      }
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user