# Translate push notifications (/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Push notifications work in conjunction with the translation feature. If a user enables the auto-translate feature and sends a message, the SDK will send both the original message and the translated message.

A recipient can set the preferred language for push notifications. If the language of the translated message matches their setting, the translated message is displayed in the push notification bar; otherwise, the original message is displayed.

The following sample code shows how to set and get the preferred language for push notifications:

```java
// Set the preferred language for offline push.
ChatClient.getInstance().pushManager().setPreferredNotificationLanguage("en", new CallBack(){});

// Get the preferred language for offline push.
ChatClient.getInstance().pushManager().getPreferredNotificationLanguage(new ValueCallBack(){});
```

    
  
      
  
      
  
      
  
      
  
      
  
      
  


## Platform-specific versions
- [Android](/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications/android.md)
- [iOS](/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications/ios.md)
- [Web](/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications/web.md)
- [Flutter](/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications/flutter.md)
- [React Native](/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications/react-native.md)
- [Windows](/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications/windows.md)
- [Unity](/en/realtime-media/im/build/notifications-and-event-handling/offline-push/translate-push-notifications/unity.md)
