开发者

using localization files in library

开发者 https://www.devze.com 2023-02-18 19:40 出处:网络
i have a component library. i created en.lproj folder and Localizable.strings,Library.strings file in this folder. i do this also for my main application. i can use localization开发者_StackOverflow中文

i have a component library. i created en.lproj folder and Localizable.strings,Library.strings file in this folder. i do this also for my main application. i can use localization开发者_StackOverflow中文版 file located in main application. i can not use localization file located in my library. how can i use localization files located in references library?

i use both;

Console.WriteLine (NSBundle..MainBundle.LocalizedString("test","");
Console.WriteLine (NSBundle..MainBundle.LocalizedString("test","","Library"));


First, I see two periods in you code. Secondly, did you set the build action to "Content"?

0

精彩评论

暂无评论...
验证码 换一张
取 消