| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H | 5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H |
| 6 #define IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H | 6 #define IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H |
| 7 | 7 |
| 8 #import <ChromeWebView/cwv_export.h> | |
| 9 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 10 | 9 |
| 10 #import "cwv_export.h" |
| 11 |
| 11 NS_ASSUME_NONNULL_BEGIN | 12 NS_ASSUME_NONNULL_BEGIN |
| 12 | 13 |
| 13 // Represents a single translatable language. | 14 // Represents a single translatable language. |
| 14 CWV_EXPORT | 15 CWV_EXPORT |
| 15 @interface CWVTranslationLanguage : NSObject | 16 @interface CWVTranslationLanguage : NSObject |
| 16 | 17 |
| 17 - (instancetype)init NS_UNAVAILABLE; | 18 - (instancetype)init NS_UNAVAILABLE; |
| 18 | 19 |
| 19 // The ISO language code. en for English, es for Spanish, etc... | 20 // The ISO language code. en for English, es for Spanish, etc... |
| 20 // https://cloud.google.com/translate/docs/languages | 21 // https://cloud.google.com/translate/docs/languages |
| 21 @property(nonatomic, copy, readonly) NSString* languageCode; | 22 @property(nonatomic, copy, readonly) NSString* languageCode; |
| 22 | 23 |
| 23 // The localized language name. | 24 // The localized language name. |
| 24 @property(nonatomic, copy, readonly) NSString* languageName; | 25 @property(nonatomic, copy, readonly) NSString* languageName; |
| 25 | 26 |
| 26 @end | 27 @end |
| 27 | 28 |
| 28 NS_ASSUME_NONNULL_END | 29 NS_ASSUME_NONNULL_END |
| 29 | 30 |
| 30 #endif // IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H | 31 #endif // IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H |
| OLD | NEW |