]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🌐 Add Korean translation for `/docs/ko/docs/tutorial/dependencies/global-dependencies...
authorκΉ€λͺ…κΈ° <riroan@naver.com>
Wed, 14 Feb 2024 15:05:47 +0000 (00:05 +0900)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2024 15:05:47 +0000 (10:05 -0500)
docs/ko/docs/tutorial/dependencies/global-dependencies.md [new file with mode: 0644]

diff --git a/docs/ko/docs/tutorial/dependencies/global-dependencies.md b/docs/ko/docs/tutorial/dependencies/global-dependencies.md
new file mode 100644 (file)
index 0000000..930f6e6
--- /dev/null
@@ -0,0 +1,34 @@
+# μ „μ—­ μ˜μ‘΄μ„±
+
+λͺ‡λͺ‡ μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ—μ„œλŠ” μ• ν”Œλ¦¬μΌ€μ΄μ…˜ μ „체에 μ˜μ‘΄μ„±μ„ μΆ”κ°€ν•˜κ³  μ‹Άμ„ μˆ˜ μžˆμŠ΅λ‹ˆλ‹€.
+
+[*경둜 μž‘동 λ°μ½”λ ˆμ΄ν„°*에 `dependencies` μΆ”κ°€ν•˜κΈ°](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}와 μœ μ‚¬ν•œ λ°©λ²•μœΌλ‘œ `FastAPI` μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ— κ·Έκ²ƒλ“€μ„ μΆ”κ°€ν•  μˆ˜ μžˆμŠ΅λ‹ˆλ‹€.
+
+그런 κ²½μš°μ—, μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ˜ λͺ¨λ“  *경둜 μž‘동*에 μ μš©λ  κ²ƒμž…λ‹ˆλ‹€:
+
+=== "Python 3.9+"
+
+    ```Python hl_lines="16"
+    {!> ../../../docs_src/dependencies/tutorial012_an_py39.py!}
+    ```
+
+=== "Python 3.8+"
+
+    ```Python hl_lines="16"
+    {!> ../../../docs_src/dependencies/tutorial012_an.py!}
+    ```
+
+=== "Python 3.8 Annotatedκ°€ μ—†λŠ” κ²½μš°"
+
+    !!! tip "팁"
+        κ°€λŠ₯ν•˜λ‹€λ©΄ `Annotated`κ°€ λ‹¬λ¦° λ²„전을 κΆŒμž₯ν•©λ‹ˆλ‹€.
+
+    ```Python hl_lines="15"
+    {!> ../../../docs_src/dependencies/tutorial012.py!}
+    ```
+
+그리고 [*경둜 μž‘동 λ°μ½”λ ˆμ΄ν„°*에 `dependencies` μΆ”κ°€ν•˜κΈ°](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}에 λŒ€ν•œ μ•„μ΄λ””μ–΄λŠ” μ—¬μ „νžˆ μ μš©λ˜μ§€λ§Œ μ—¬κΈ°μ—μ„œλŠ” μ•±μ— μžˆλŠ” λͺ¨λ“  *경둜 μž‘동*에 μ μš©λ©λ‹ˆλ‹€.
+
+## *경둜 μž‘동* λͺ¨μŒμ— λŒ€ν•œ μ˜μ‘΄μ„±
+
+이후에 μ—¬λŸ¬ νŒŒμΌλ“€μ„ κ°€μ§€λŠ” λ” ν° μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ„ κ΅¬μ‘°ν™”ν•˜λŠ” λ²•([더 ν° μ• ν”Œλ¦¬μΌ€μ΄μ…˜ - μ—¬λŸ¬ νŒŒμΌλ“€](../../tutorial/bigger-applications.md){.internal-link target=_blank})을 μ½μ„ λ•Œ, *경둜 μž‘동* λͺ¨μŒμ— λŒ€ν•œ λ‹¨μΌ `dependencies` λ§€κ°œλ³€μˆ˜λ₯Ό μ„ μ–Έν•˜λŠ” λ²•에 λŒ€ν•΄μ„œ λ°°μš°κ²Œ λ  κ²ƒμž…λ‹ˆλ‹€.