mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			304 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			304 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import commonTrads from './commonTrads.json';
 | |
| 
 | |
| const formatMessagesWithPluginId = (pluginId, messages) => {
 | |
|   return Object.keys(messages).reduce((acc, current) => {
 | |
|     acc[`${pluginId}.${current}`] = messages[current];
 | |
| 
 | |
|     return acc;
 | |
|   }, commonTrads);
 | |
| };
 | |
| 
 | |
| export default formatMessagesWithPluginId;
 | 
