Skip to content

Commit

Permalink
Read locale from #+LANGUAGE: directive
Browse files Browse the repository at this point in the history
  • Loading branch information
amake committed Oct 15, 2024
1 parent 3c7e1e7 commit 276e4cb
Show file tree
Hide file tree
Showing 10 changed files with 223 additions and 3 deletions.
30 changes: 30 additions & 0 deletions assets/test/local-ko.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#+LANGUAGE: ko

U+4ECA 今
U+4EE4 令
U+514D 免
U+5165 入
U+5168 全
U+5173 关
U+5177 具
U+5203 刃
U+5316 化
U+5916 外
U+60C5 情
U+624D 才
U+62B5 抵
U+6B21 次
U+6D77 海
U+753B 画
U+76F4 直
U+771F 真
U+793a 示
U+795E 神
U+7A7A 空
U+8005 者
U+8349 草
U+8525 蔥
U+89D2 角
U+9053 道
U+96C7 雇
U+9AA8 骨
30 changes: 30 additions & 0 deletions assets/test/locale-ja.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#+LANGUAGE: ja

U+4ECA 今
U+4EE4 令
U+514D 免
U+5165 入
U+5168 全
U+5173 关
U+5177 具
U+5203 刃
U+5316 化
U+5916 外
U+60C5 情
U+624D 才
U+62B5 抵
U+6B21 次
U+6D77 海
U+753B 画
U+76F4 直
U+771F 真
U+793a 示
U+795E 神
U+7A7A 空
U+8005 者
U+8349 草
U+8525 蔥
U+89D2 角
U+9053 道
U+96C7 雇
U+9AA8 骨
30 changes: 30 additions & 0 deletions assets/test/locale-zh_CN.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#+LANGUAGE: zh-CN

U+4ECA 今
U+4EE4 令
U+514D 免
U+5165 入
U+5168 全
U+5173 关
U+5177 具
U+5203 刃
U+5316 化
U+5916 外
U+60C5 情
U+624D 才
U+62B5 抵
U+6B21 次
U+6D77 海
U+753B 画
U+76F4 直
U+771F 真
U+793a 示
U+795E 神
U+7A7A 空
U+8005 者
U+8349 草
U+8525 蔥
U+89D2 角
U+9053 道
U+96C7 雇
U+9AA8 骨
30 changes: 30 additions & 0 deletions assets/test/locale-zh_Hans.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#+LANGUAGE: zh-Hans

U+4ECA 今
U+4EE4 令
U+514D 免
U+5165 入
U+5168 全
U+5173 关
U+5177 具
U+5203 刃
U+5316 化
U+5916 外
U+60C5 情
U+624D 才
U+62B5 抵
U+6B21 次
U+6D77 海
U+753B 画
U+76F4 直
U+771F 真
U+793a 示
U+795E 神
U+7A7A 空
U+8005 者
U+8349 草
U+8525 蔥
U+89D2 角
U+9053 道
U+96C7 雇
U+9AA8 骨
30 changes: 30 additions & 0 deletions assets/test/locale-zh_Hant.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#+LANGUAGE: zh-Hant

U+4ECA 今
U+4EE4 令
U+514D 免
U+5165 入
U+5168 全
U+5173 关
U+5177 具
U+5203 刃
U+5316 化
U+5916 外
U+60C5 情
U+624D 才
U+62B5 抵
U+6B21 次
U+6D77 海
U+753B 画
U+76F4 直
U+771F 真
U+793a 示
U+795E 神
U+7A7A 空
U+8005 者
U+8349 草
U+8525 蔥
U+89D2 角
U+9053 道
U+96C7 雇
U+9AA8 骨
30 changes: 30 additions & 0 deletions assets/test/locale-zh_Hant_HK.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#+LANGUAGE: zh-Hant-HK

U+4ECA 今
U+4EE4 令
U+514D 免
U+5165 入
U+5168 全
U+5173 关
U+5177 具
U+5203 刃
U+5316 化
U+5916 外
U+60C5 情
U+624D 才
U+62B5 抵
U+6B21 次
U+6D77 海
U+753B 画
U+76F4 直
U+771F 真
U+793a 示
U+795E 神
U+7A7A 空
U+8005 者
U+8349 草
U+8525 蔥
U+89D2 角
U+9053 道
U+96C7 雇
U+9AA8 骨
30 changes: 30 additions & 0 deletions assets/test/locale-zh_TW.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#+LANGUAGE: zh-TW

U+4ECA 今
U+4EE4 令
U+514D 免
U+5165 入
U+5168 全
U+5173 关
U+5177 具
U+5203 刃
U+5316 化
U+5916 外
U+60C5 情
U+624D 才
U+62B5 抵
U+6B21 次
U+6D77 海
U+753B 画
U+76F4 直
U+771F 真
U+793a 示
U+795E 神
U+7A7A 空
U+8005 者
U+8349 草
U+8525 蔥
U+89D2 角
U+9053 道
U+96C7 雇
U+9AA8 骨
10 changes: 10 additions & 0 deletions assets/test/test.org
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@

- [[file:layout-headlines.org][Headlines]]

* Locale

- [[file:locale-zh_Hant.org][zh-Hant]]
- [[file:locale-zh_Hans.org][zh-Hans]]
- [[file:locale-zh_Hant_HK.org][zh-Hant-HK]]
- [[file:locale-zh_TW.org][zh-TW]]
- [[file:locale-zh_CN.org][zh-CN]]
- [[file:locale-ja.org][ja]]
- [[file:local-ko.org][ko]]

* Links

- [[file:links-local.org][Local]]
Expand Down
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ packages:
dependency: "direct main"
description:
name: org_flutter
sha256: "2102584ea78e8606c249f246d8a34fbdc18f1f80419d30bff8ddf916a657750c"
sha256: "9e5e776ad31a21e1b1f70b23e767b5aa48431760e395e8c6591a7fe9690171e5"
url: "https://pub.dev"
source: hosted
version: "7.6.0"
version: "7.7.0"
org_parser:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dependencies:
google_fonts: ^6.0.0
http: ^1.1.0
intl: ^0.19.0
org_flutter: ^7.6.0
org_flutter: ^7.7.0
# org_flutter:
# path: ../org_flutter
path_provider: ^2.0.9
Expand Down

0 comments on commit 276e4cb

Please sign in to comment.