|
@@ -3,10 +3,25 @@ using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
|
+using Windows.ApplicationModel.Resources;
|
|
|
|
|
|
namespace KdanStrings
|
|
|
{
|
|
|
- public class Class1
|
|
|
+ public class Localized
|
|
|
{
|
|
|
+ public string this[string key]
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ var str = ResourceLoader.GetForViewIndependentUse("KdanStrings/Resources").GetString(key);
|
|
|
+ return str;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static string GetString(string key)
|
|
|
+ {
|
|
|
+ return ResourceLoader.GetForViewIndependentUse("KdanStrings/Resources").GetString(key);
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|