Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: ios/web_view/public/cwv_translation_language.h

Issue 2839093002: Implemented new Translate API for purely Objective-C clients. (Closed)
Patch Set: Added some error handling. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H
6 #define IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H
7
8 #import <ChromeWebView/cwv_export.h>
9 #import <Foundation/Foundation.h>
10
11 // Represents a single translatable language.
12 CWV_EXPORT
13 @interface CWVTranslationLanguage : NSObject
14
15 - (instancetype)init NS_UNAVAILABLE;
16
17 // The ISO language code. en for English, es for Spanish, etc...
Hiroshi Ichikawa 2017/04/26 08:40:57 Can you add a link to https://cloud.google.com/tra
jzw1 2017/04/27 04:54:02 Done.
18 @property(nonatomic, copy, readonly) NSString* languageCode;
19
20 // The language name in the current OS locale.
Eugene But (OOO till 7-30) 2017/04/26 20:15:31 How about "Localized language name"?
jzw1 2017/04/27 04:54:02 Done.
Eugene But (OOO till 7-30) 2017/04/27 13:08:08 I think "The language name in the current OS local
jzw1 2017/04/28 02:34:53 I think what you are saying is you prefer localize
Hiroshi Ichikawa 2017/04/28 02:49:51 I believe Eugene is talking about the comment, not
Eugene But (OOO till 7-30) 2017/04/28 03:07:28 No. My comment is related to "The language name in
jzw1 2017/04/28 05:43:35 ahh ok sorry for understanding. ill update the com
21 @property(nonatomic, copy, readonly) NSString* languageName;
22
23 @end
24
25 #endif // IOS_WEB_VIEW_PUBLIC_CWV_TRANSLATION_LANGUAGE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698